Skip to content

Ridge - don't set sample_weight if no class_weight provided#4851

Merged
mblondel merged 1 commit intoscikit-learn:masterfrom
trevorstephens:ridge_no_copy
Jun 22, 2015
Merged

Ridge - don't set sample_weight if no class_weight provided#4851
mblondel merged 1 commit intoscikit-learn:masterfrom
trevorstephens:ridge_no_copy

Conversation

@trevorstephens
Copy link
Copy Markdown
Contributor

@TomDLT
Copy link
Copy Markdown
Member

TomDLT commented Jun 11, 2015

You changed it in RidgeClassifierCV, but not in RidgeClassifier

@TomDLT
Copy link
Copy Markdown
Member

TomDLT commented Jun 11, 2015

Otherwise, LGTM

@trevorstephens
Copy link
Copy Markdown
Contributor Author

Thanks, will have another look tonight, egads.

add RidgeClassifier
@trevorstephens
Copy link
Copy Markdown
Contributor Author

OK, note to self, don't try to push commits before the first coffee of the day 😄

Fix is now in place for both RidgeClassifier and RidgeClassifierCV . I noticed in RidgeClassifierCV that the default value of 1.0 for sample_weight was introduced in #3034 , any reason for not making the same change for the CV version of this @mblondel ? Seems that all tests pass and coef_ on a basic test I made against master don't change either.

@mblondel
Copy link
Copy Markdown
Member

CC @eickenberg (author of #3034)

mblondel added a commit that referenced this pull request Jun 22, 2015
Ridge - don't set sample_weight if no class_weight provided
@mblondel mblondel merged commit c49aa03 into scikit-learn:master Jun 22, 2015
@mblondel
Copy link
Copy Markdown
Member

Ok, @eickenberg seems busy.

Merged. Thanks @trevorstephens!

@trevorstephens trevorstephens deleted the ridge_no_copy branch June 22, 2015 16:37
@trevorstephens
Copy link
Copy Markdown
Contributor Author

Thanks for the review @mblondel !

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.

RidgeClassifier triggers data copy

3 participants