I am working on an image classification problem and using data augmentation in Keras.
from keras.preprocessing.image import ImageDataGenerator datagen = ImageDataGenerator( rotation_range=2, horizontal_flip=True)
I would like to know if the
ImageDataGeneratorapplies the transformation randomly to image patches. That is for example, rotation may be applied on one image, whilst flip may be applied to another image. I want to know if the decision to apply rotation or a flip is randomly determined.