Login using Social Account
     Continue with GoogleLogin using your credentials
Our training dataset consists of 60,000 images and each image has 784 features. An image consists of 28x28 pixels, and each pixel is a value from 0 to 255 describing the pixel intensity. 0 for white and 255 for black.
Let us have a look at one instance (an article image) of this training dataset X_train.
To view a single instance(an article image),all we need to do is grab an instance’s feature vector, reshape it to a 28×28 array, and display it using Matplotlib’s imshow() function.
Compare the digit in the image to its corresponding actual digit in the target dataset.
Please use the showImage() created earlier to show image at X_train[0] as shown below
showImage(X_train[0])
Please check the corresponding article name (class) in target dataset (y_train[0]) if it matches the above image by using below code
y_train[0]
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Loading comments...