scikit-learn-mooc icon indicating copy to clipboard operation
scikit-learn-mooc copied to clipboard

Exercise M4.04 demo of `LinearRegression` on repeated features is unstable

Open ArturoAmorQ opened this issue 3 years ago • 1 comments

Originally posted here in the forum. Ridge regression with alpha=1.0 leads to same result as the ordinary linear regression depending on the machine. This is possibly an Issue worth looking at from scikit-learn, but we may alternatively avoid this demo on the MOOC.

Reproducer from OP here: https://gist.github.com/qdpham/21b30181a8e0dd50cfcbba57b61e9b70

ArturoAmorQ avatar Jun 22 '22 09:06 ArturoAmorQ

The problem is not with Ridge which always behaves as expected on both machines but rather that LinearRegression does not always fail as we expect it to fail depending on the machines.

ogrisel avatar Oct 12 '22 14:10 ogrisel