Augmenting Monet
Perhaps you're still working on that machine learning model that identifies ocean scenes in paintings. You'd like to generate a few extra images to augment your existing data. After all, a human can tell that a painting is of an ocean even if the painting is upside-down: why shouldn't your machine learning model?
numpy
is loaded as np
, and the 3D Monet rgb_array
is available.
Diese Übung ist Teil des Kurses
Introduction to NumPy
Interaktive Übung zum Anfassen
Probieren Sie diese Übung aus, indem Sie diesen Beispielcode ausführen.
# Flip rgb_array so that it is the mirror image of the original
mirrored_monet = ____
plt.imshow(mirrored_monet)
plt.show()