Question: Testing PCA 0 . 0 1 . 0 point ( graded ) Use project _ onto _ PC to compute a 1 8 - dimensional

Testing PCA
0.01.0 point (graded)
Use project_onto_PC to compute a 18-dimensional PCA representation of the MNIST training and test
datasets, as illustrated in main. py .
Retrain your softmax regression model (using the original labels) on the MNIST training dataset and report its
error on the test data, this time using these 18-dimensional PCA-representations rather than the raw pixel
values.
If your PCA implementation is correct, the model should perform nearly as well when only given 18 numbers
encoding each image as compared to the 784 in the original data (error on the test set using PCA features
should be around 0.15). This is because PCA ensures these 18 feature values capture the maximal amount of
variation from the original 784-dimensional data.
Error rate for 18-dimensional PCA features =
 Testing PCA 0.01.0 point (graded) Use project_onto_PC to compute a 18-dimensional

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!