Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Introduction to NumPy

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Flip rgb_array so that it is the mirror image of the original
mirrored_monet = ____
plt.imshow(mirrored_monet)
plt.show()
Code bewerken en uitvoeren