-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Huber fix with bool X #13328
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
Huber fix with bool X #13328
Conversation
8dbc60e to
8838ca1
Compare
| # Test that it does not crash with bool data | ||
| X, y = make_regression(n_samples=200, n_features=2, noise=4.0, random_state=0) | ||
| X_bool = X > 0 | ||
| huber = HuberRegressor().fit(X_bool, y) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| huber = HuberRegressor().fit(X_bool, y) | |
| HuberRegressor().fit(X_bool, y) |
albertcthomas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but you need to rebase.
NicolasHug
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise
doc/whats_new/v0.21.rst
Outdated
|
|
||
| - |Fix| Fixed a bug in :class:`linear_model.HuberRegressor` that was | ||
| broken when X was of dtype bool. | ||
| :issue:`13314` by `Alexandre Gramfort`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be PR number 13328
doc/whats_new/v0.21.rst
Outdated
| prefixed with one of the labels: |MajorFeature|, |Feature|, |Efficiency|, | ||
| |Enhancement|, |Fix| or |API|. They should be under a heading for the | ||
| relevant module (or *Multiple Modules* or *Miscellaneous*), and within each | ||
| relevant module (or *Mufltiple Modules* or *Miscellaneous*), and within each |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert?
* make sure huber works with boolean X * update what's new * lint * review * pep8
This reverts commit aac737f.
This reverts commit aac737f.
* make sure huber works with boolean X * update what's new * lint * review * pep8
fixes #13314