TensorFlow Interview Questions and Answers
Question: Explain the concept of data augmentation in image classification using TensorFlow.Answer: Data augmentation involves applying random transformations to input data during training to increase the diversity of the dataset. In image classification, this can include rotations, flips, and zooms.Example: data_augmentation = tf.keras.Sequential([ tf.keras.layers.experimental.preprocessing.RandomFlip('horizontal'), tf.keras.layers.experimental.preprocessing.RandomRotation(0.2), ]) |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: