Skip to content
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

Stable ols #575

Merged
merged 14 commits into from
Aug 18, 2019
Merged

Stable ols #575

merged 14 commits into from
Aug 18, 2019

Conversation

PuneetGrov3r
Copy link
Contributor

@PuneetGrov3r PuneetGrov3r commented Aug 15, 2019

Description

Added new features to OLS function. Now you can also use SVD and QR decompostion
methods to for Linear Regression.

Related issues or pull requests

It is related to issue #56, 'Numerically Stable OLS'.
Applies #56

Pull Request Checklist

  • Added a note about the modification or contribution to the ./docs/sources/CHANGELOG.md file (if applicable)
  • Added appropriate unit test functions in the ./mlxtend/*/tests directories (if applicable)
  • Modify documentation in the corresponding Jupyter Notebook under mlxtend/docs/sources/ (if applicable)
  • Ran PYTHONPATH='.' pytest ./mlxtend -sv and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g., PYTHONPATH='.' pytest ./mlxtend/classifier/tests/test_stacking_cv_classifier.py -sv)
  • Checked for style issues by running flake8 ./mlxtend

@coveralls
Copy link

coveralls commented Aug 15, 2019

Coverage Status

Coverage increased (+0.02%) to 92.258% when pulling 9bb684c on PuneetGrov3r:stable-ols into 115278b on rasbt:master.

Copy link
Owner

@rasbt rasbt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Looks great so far. Here are some additional suggestions

mlxtend/regressor/linear_regression.py Outdated Show resolved Hide resolved
mlxtend/regressor/linear_regression.py Outdated Show resolved Hide resolved
mlxtend/regressor/linear_regression.py Outdated Show resolved Hide resolved
mlxtend/regressor/linear_regression.py Outdated Show resolved Hide resolved
@rasbt
Copy link
Owner

rasbt commented Aug 17, 2019

Thanks for adding the descriptions to the notebook! I refined these a little bit, please have a look if they sound good to you.

Btw., I removed a bunch of these references, because I didn't know where they should be cited (there were no citation indicators in the notebook before). Currently, I only cite ELS for QR factorization and Strang for the SVD approach. However, if the other citations you had fit for additional sections, please add back the references with citation numbers where appropriate.

Otherwise, if this looks good to you, I'd be happy to merge this once the unit tests pass. Thanks!

@PuneetGrov3r
Copy link
Contributor Author

PuneetGrov3r commented Aug 18, 2019

Looks Great!

Btw., I removed a bunch of these references, because I didn't know where they should be cited (there were no citation indicators in the notebook before). Currently, I only cite ELS for QR factorization and Strang for the SVD approach. However, if the other citations you had fit for additional sections, please add back the references with citation numbers where appropriate.

Should we add something on matrices being ill-conditioned? Like this:
https://ece.uwaterloo.ca/~dwharder/NumericalAnalysis/04LinearAlgebra/illconditioned/

@rasbt
Copy link
Owner

rasbt commented Aug 18, 2019

Sure, good point, we could add a reference via the link you cited. I.e.,

... are ill-conditioned [3].

References

I believe this will be very useful to many users.

@PuneetGrov3r
Copy link
Contributor Author

Done

Copy link
Owner

@rasbt rasbt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding and adding this reference. I have some suggestions with regard to adding it. See below. Thanks!

docs/sources/user_guide/regressor/LinearRegression.ipynb Outdated Show resolved Hide resolved
docs/sources/user_guide/regressor/LinearRegression.ipynb Outdated Show resolved Hide resolved
@rasbt
Copy link
Owner

rasbt commented Aug 18, 2019

Thanks for the changes and the whole PR! Should be good to merge now.

@rasbt rasbt merged commit 936a96a into rasbt:master Aug 18, 2019
@PuneetGrov3r PuneetGrov3r deleted the stable-ols branch August 19, 2019 04:13
@PuneetGrov3r
Copy link
Contributor Author

Thanks @rasbt for being so cooperative and patient!
Will be making more contributions to library soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants