Hello,
for the assignment, we’re doing data augmentation, using the methods RandomFlip
and RandomRotation
, imported from tensorflow.keras.layers.experimental.preprocessing
.
My question is the following: how are we supposed to know that we can’t use the method directly from tf.keras.layers
? Because it seems from this doc that the method exists, and also, when I go to this doc page (corresponding to tensorflow.keras.layers.experimental.preprocessing
) and then click on the RandomFlip
class, it throws me back to tensorflow.keras.layers
documentation…
Finally, I did try in the code of the assignment to use data_augmentation.add(tf.keras.layers.RandomRotation(0.2))
instead of data_augmentation.add(tf.keras.layers.experimental.preprocessing.RandomRotation(0.2))
, and I get the error message AttributeError: module ‘tensorflow.keras.layers’ has no attribute ‘RandomRotation’ which I totally don’t understand, since it appears on the page of ‘tensorflow.keras.layers’.
I think my problem is that I can’t properly interpret the documentations, tha’s why I need your help!
Thank you