Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 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 1D projections for the following 2D dataset:
Samples for class 1(1):x1=(x1,x2)={(4,2),(2,4),(2,3),(3,6),(4,4)}
Samples for class 2(2):x2=(x1,x2)={(6,8),(9,5),(8,7),(10,8)}
Draw the two principal components on the plot for PCA as vectors, as well as the projected blue and red points in 1D.
Draw the projected 1D data using LDA.
(b) Repeat (a) for the following dataset:
Samples for class 1(1):x1=(x1,x2)={(6,8),(2,4),(2,3),(3,6)}
Samples for class 2(2):x2=(x1,x2)={(9,5),(8,7),(10,8),(4,2),(4,4)}
(c) Comment and compare how good the 1D 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 "Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd Edition" book.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions

Question

1. Identify and control your anxieties

Answered: 1 week ago