Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
03 D 20 H : 21 M : 14 S Apply NowLet us define some functions which will be used in this course.
The showImage() function given below displays the input dataset instance (image) on the screen.
Copy paste the below function as is:
def showImage(data):
some_article = data # Selecting the image.
some_article_image = some_article.reshape(28, 28) # Reshaping it to get the 28x28 pixels
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.
Answer is not availble for this assesment
Please login to comment
0 Comments
There are 2 new comments.