Question: ( a ) Compute the PCA and LDA 1 D projections for the following 2 D dataset: Samples for class 1 ( 1 ) :
a Compute the PCA and LDA D projections for the following D dataset:
Samples for class :
Samples for class :
Draw the two principal components on the plot for PCA as vectors, as well as the projected blue and red points in
Draw the projected D data using LDA.
b Repeat a for the following dataset:
Samples for class :
Samples for class :
c Comment and compare how good the D projected data in a and b can be classified after PCA and LDA.
Write the code in PYTHON. You can use the information in the "HandsOn Machine Learning with ScikitLearn, Keras, and TensorFlow, rd Edition" book.
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
