From 5127b04cc99bea986f753ae2115ed1ad8348ad93 Mon Sep 17 00:00:00 2001 From: Junyoung Kim Date: Fri, 11 Oct 2019 17:59:20 +0900 Subject: [PATCH 1/2] 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. --- keras/engine/training.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keras/engine/training.py b/keras/engine/training.py index 0a556f21481a..fe1f3a8e1493 100644 --- a/keras/engine/training.py +++ b/keras/engine/training.py @@ -1274,7 +1274,7 @@ def evaluate(self, `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 @@ def predict(self, x, - 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 From a10f024c612ba9c98da9d8ff92f95cce3b34863e Mon Sep 17 00:00:00 2001 From: Junyoung Kim Date: Sat, 12 Oct 2019 00:45:11 +0900 Subject: [PATCH 2/2] 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". --- keras/engine/training.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keras/engine/training.py b/keras/engine/training.py index fe1f3a8e1493..f2ff6114cbdb 100644 --- a/keras/engine/training.py +++ b/keras/engine/training.py @@ -1755,7 +1755,7 @@ def evaluate_generator(self, generator, 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 @@ def predict_generator(self, generator, 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