ML-From-Scratch icon indicating copy to clipboard operation
ML-From-Scratch copied to clipboard

W0 in Linear Discriminant analyis

Open rahls7 opened this issue 7 years ago • 1 comments

When you take the threshold while predicting y, you did not account for the w0 terms in your equation. Hence, it always predicts y as 1, because h is always negative. The equation should be something like this.

screen shot 2018-02-07 at 10 00 04 pm 1

rahls7 avatar Feb 08 '18 03:02 rahls7

@rahls7 Very much True. Not only that. The estimation of the covariance matrix should be weighted average of the covariance matrix of all the classes. But here he considered the sum of covariance matrix as estimation.

CodeName-Detective avatar Sep 01 '20 14:09 CodeName-Detective