Question
This question is to compare different classifiers and their performance for multi-class classifications on the complete MNIST dataset at http://yann.lecun.com/exdb/mnist/. You can find the data
This question is to compare different classifiers and their performance for multi-class classifications on the complete MNIST dataset at http://yann.lecun.com/exdb/mnist/. You can find the data file mnist 10digits.mat in the homework folder. First, a quick introduction to this dataset, since you will encounter it in other assignments as well. The MNIST database of handwritten digits has a training set of 60,000 examples and a test set of 10,000 examples. This split will be become particularly important when we explore supervised methods, but for this case, only focus on the training set. Use the number of clusters K = 10. Also, we suggest you "standardize" the features (pixels in this case) by dividing the values of the features by 255 (thus mapping the range of the features from [0, 255] to [0, 1]). We are going to use purity score as a performance metric: each cluster is assigned to the class which is most frequent in the cluster, and then the accuracy of this assignment is measured by the number of correctly assigned samples divided by the size of the cluster:
purity = (correctly assigned samples) / (size of cluster) for the cluster i.
1. Use the squared-ℓ2 norm as a metric for clustering Report the purity score for each cluster with python code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
To calculate the purity score for each cluster using the squared 2 norm as a metric for clustering y...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started