Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Fishers linear discriminant analysis, we search for a vector w such that all data points are well separately after they are projected to the

In Fishers linear discriminant analysis, we search for a vector w such that all data points are well separately after they are projected to the direction defined by w. The input data points are x1=(4,3)T y1 = 1 x2=(2,2)T y2 = 1 x3=(1,1)T y3 = -1 x4=(-2,-1)T y4= -1 (Note that the first element in vector xi is NOT x0=1). Use Python to find a vector w=[w1,w2] with Fishers linear discriminant analysis. Steps of the python code and intermediate results are needed.

Use these example steps:

Sw = np.matrix(",;,")

m2 = np.matrix(";")

m1 = np.matrix(";")

from numpy.linalg import inv

W = inv(Sw) * (m2-m1)

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

5. How do instructional objectives help learning to occur?

Answered: 1 week ago

Question

4. Help trainees set challenging mastery or learning goals.

Answered: 1 week ago