Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
In this step, we will define a function named showImage()
that will help us view the images in the dataset.
Define the showImage()
function:
def << your code goes here >>(data):
some_article = data # Selecting the image.
some_article_image = some_article.reshape(28, 28)
plt.imshow(some_article_image, cmap = matplotlib.cm.binary, interpolation="nearest")
plt.axis("off")
plt.show()
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...