You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linear Discriminant Analysis eigen solver questionable implementation #11727
By the implementation difference I mentioned above, as long as the covariance matrix is not identity matrix, there should be difference between these 2 solvers.
but it only gives different results in 2 scenarios:
variance for important features are very different and you use shrinkage
features are collinear and you use shrinkage
There seems to be something specific to shrinkage... I don't get it.
don't we have tests to assess that results are the same across solvers? why is this not picked up? can you provide a non-regression test?
The reason the test passes is that it only checks that the predictions are the same and not that the posterior probabilities are equal. The test introduced in #11796 (test_lda_predict_proba) passes for svd and lsqr solvers, but fails for the eigen solver.
Activity
agramfort commentedon Aug 1, 2018
xiaoxionglin commentedon Aug 1, 2018
I'm also wondering.
I played a bit with iris dataset
By the implementation difference I mentioned above, as long as the covariance matrix is not identity matrix, there should be difference between these 2 solvers.
but it only gives different results in 2 scenarios:
There seems to be something specific to shrinkage... I don't get it.
xiaoxionglin commentedon Aug 6, 2018
by changing
self.coef_fromto
eigen solver reached the same performance as lsqr solver
agramfort commentedon Aug 10, 2018
can you propose a non-regression test?
agamemnonc commentedon Mar 1, 2019
The reason the test passes is that it only checks that the predictions are the same and not that the posterior probabilities are equal. The test introduced in #11796 (
test_lda_predict_proba)passes forsvdandlsqrsolvers, but fails for theeigensolver.agamemnonc commentedon Mar 4, 2019
@lxx74n74n can you please confirm that the fix in #11796 solves this issue? Please feel free to jump in the discussion in that PR.