Skip to content

Commit bcc68e9

Browse files
dgorissenfchollet
authored andcommitted
Improve docstring on order of transformations (keras-team#7248)
* Improve docstring on order of transformations * Add code markers and be more precise
1 parent 985c441 commit bcc68e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

keras/preprocessing/image.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,9 @@ class ImageDataGenerator(object):
365365
horizontal_flip: whether to randomly flip images horizontally.
366366
vertical_flip: whether to randomly flip images vertically.
367367
rescale: rescaling factor. If None or 0, no rescaling is applied,
368-
otherwise we multiply the data by the value provided
369-
(before applying any other transformation).
368+
otherwise we multiply the data by the value provided. This is
369+
applied after the `preprocessing_function` (if any provided)
370+
but before any other transformation.
370371
preprocessing_function: function that will be implied on each input.
371372
The function will run before any other modification on it.
372373
The function should take one argument:

0 commit comments

Comments
 (0)