-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linear least squares fitting - choosing the right algorithm #968
Comments
Personally I would simply pick scipy's lstsq because sklearn's regression is just a wrapper around it. For something so simple, I think that we'll be better off getting it from the source. We could also take it from numpy, but usually functions that are available from both scipy and numpy tend to be faster in scipy. |
A relevant thread: http://stackoverflow.com/questions/29372559/what-is-the-difference-between-numpy-linalg-lstsq-and-scipy-linalg-lstsq But it looks like scipy now uses |
I think you can close this @thomasaarholt given #2422 ? |
4 years later :p |
I'm struggling trying to choose the right algorithm to incorporate into Hyperspy to do MLLS fitting. Currently I'm using
LinearRegression
from scikit-learn. Unfortunately, theresidual
returned by its methods is being deprecated. I've raised an issue about this on their github.Alternatives include numpy's
lstsq
and scipy'slstsq
.I'm basically trying to find the easiest way to do this.
The text was updated successfully, but these errors were encountered: