Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Testing PCA 0 . 0 1 . 0 point ( graded ) Use project _ onto _ PC to compute a 1 8 - dimensional
Testing PCA
point graded
Use projectontoPC to compute a 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 dimensional PCArepresentations rather than the raw pixel
values.
If your PCA implementation is correct, the model should perform nearly as well when only given numbers
encoding each image as compared to the in the original data error on the test set using PCA features
should be around This is because PCA ensures these feature values capture the maximal amount of
variation from the original dimensional data.
Error rate for dimensional PCA features
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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