Repository navigation
MNT carry out 1.10 deprecation of negative power_t in SGD estimators - #35279
Conversation
|
Thank you for opening your first pull request to scikit-learn! 🎉 To help get your contribution reviewed, please make sure that:
|
|
Merged, thanks @dcrew44 and @AnneBeyer! |
|
@dcrew44 please have a look at our automated contribution policy. In particular there is no need to merge |
|
In @dcrew44's defense, I also didn't know that until someone (maybe you, @lesteve ;) ) told me that explicitly, so we could make it more prominent in the docs at some point (it currently only says: "It is often helpful to keep your local feature branch synchronized with the latest changes of the main scikit-learn repository"). |
|
@lesteve thanks for the heads up lol. That was my first pr, should have read the policy in more detail lol. |
Yeah, I don't really see a good reason for this but doing some git archaeology may offer interesting insights 🤷. |
|
There you go @dcrew44, don't read it all at once 😉! Please have a look at our contributing doc and in particular the section Issues for new contributors. There is also GitHub's How to contribute to Open-Source guide, which gives a good generic overview about how open-source works. |
Reference Issues/PRs
Towards #35252
What does this implement/fix? Explain your changes.
Carries out the 1.10 deprecation of negative
power_tin SGD estimators.power_tconstraint to[0, inf)inSGDClassifier,SGDRegressor, andSGDOneClassSVM, so negative values now raiseInvalidParameterError.FutureWarningand the.. deprecated:: 1.8docstring notes.test_power_t_limits; the common parameter validation checks now cover this.warningsimport fromtest_sgd.py.Introduce yourself
Hi, I'm Hayden I have a BS in Math and Computer Science and I'm interested in machine learning. I'm new to open source, and this is one of my first PRs so any advice is much appreciated. I'm excited to begin contributing.
AI usage disclosure
I used AI assistance for:
Any other comments?
The removed warning was only raised in
fit, sopartial_fitusers with a negativepower_tget the error without a prior warning. No changelog entry, since #31474 already announced this change.