提交 2b1f8ed2 编写于 作者: J Junyoung Kim 提交者: François Chollet

Change `batch_size` descriptions to proper ones (#13422)

* Change `batch_size` descriptions to proper ones

Since there're no gradients updated during `evaulate` and `predict` processes, changed their `batch_size` docstrings from `"Number of samples per gradient update"` to `"Number of samples per evaluation step"` and `"Number of samples to be predicted at once"`. (The sentence in fit remains unchanged.)

I hope this fix would change related auto-generated documents as well.

* Correct `callbacks` description docstrings

Corrected `callbacks` description docstrings in `evaluate_generator` and `predict_generator`: "List of callbacks to apply during training" -> "- during evaluation", "- during prediction".
上级 97e3916d
......@@ -1274,7 +1274,7 @@ class Model(Network):
`y` should not be specified (since targets will be obtained
from `x`).
batch_size: Integer or `None`.
Number of samples per gradient update.
Number of samples per evaluation step.
If unspecified, `batch_size` will default to 32.
Do not specify the `batch_size` if your data is in the
form of symbolic tensors, generators, or
......@@ -1383,7 +1383,7 @@ class Model(Network):
- None (default) if feeding from framework-native
tensors (e.g. TensorFlow data tensors).
batch_size: Integer or `None`.
Number of samples per gradient update.
Number of samples to be predicted at once.
If unspecified, `batch_size` will default to 32.
Do not specify the `batch_size` if your data is in the
form of symbolic tensors, generators, or
......@@ -1755,7 +1755,7 @@ class Model(Network):
Optional for `Sequence`: if unspecified, will use
the `len(generator)` as a number of steps.
callbacks: List of `keras.callbacks.Callback` instances.
List of callbacks to apply during training.
List of callbacks to apply during evaluation.
See [callbacks](/callbacks).
max_queue_size: maximum size for the generator queue
workers: Integer. Maximum number of processes to spin up
......@@ -1813,7 +1813,7 @@ class Model(Network):
Optional for `Sequence`: if unspecified, will use
the `len(generator)` as a number of steps.
callbacks: List of `keras.callbacks.Callback` instances.
List of callbacks to apply during training.
List of callbacks to apply during prediction.
See [callbacks](/callbacks).
max_queue_size: Maximum size for the generator queue.
workers: Integer. Maximum number of processes to spin up
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册