Registrations Closing Soon for DevOps Certification Training by CloudxLab | Registrations Closing in

  Enroll Now

End to End ML Project - Fashion MNIST - Defining Functions

Let 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 =, interpolation="nearest")

No hints are availble for this assesment

Answer is not availble for this assesment

Loading comments...