Question: Classifying handwritten digits: Using the MNIST dataset, we will build a simple threshold - based classifier that classifies 0 digits from non - 0 s
Classifying handwritten digits: Using the MNIST dataset, we will build a simple thresholdbased classifier that classifies digits from nons
Create a new training, validation, and test set as you did in problem but this time includes only the and digits. Hint: From the test set, select only s and s Repeat this for the training set. Then, create a validation set as done in the previous assignment.
Convert each image to one attribute by calculating the average of all the pixel values in the center x grid of the image.
Randomly select of the images from the training data. Plot the attribute values that you calculated in part b Use different colors and shapes for s and s The xaxis in your figure is the image number to and the yaxis is the calculated attribute. Label the axes and add legends appropriately. Note that these images are your validation set.
Based on your observation from the plot ie validation set guess a threshold on the attribute that you think would differentiate the two classes with the highest accuracy.
Calculate the training, validation, and testing accuracies based on the selected threshold on the corresponding sets and print them.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
