Question: In Python: 1 . Load a . mat file containing a data set 2 . Answer how many linear discriminant functions this data set can
In Python:
Load a mat file containing a data set
Answer how many linear discriminant functions this data set can have
Partition the data set into training set and testing set
Fit the training partition using both LDA and PCA
Then project both training and testing in dimensions xaxis to nearest neighbor accuracy yaxis
Plot using scatter plot the training and testing for both LDA and PCA in both d scatterplot and d scatter plot.
Comment on the difference between the d and d plots along with LDA vs PCA.
Ensure that the code compiles, produces the correct plots and is properly named with xlabel, ylabel, and zlabel. Also have a legend for the different classes in the dataset
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
