Skip to content

[MRG] DEP change the default of gamma in SVM - #13801

Merged
rth merged 10 commits into
scikit-learn:masterfrom
glemaitre:depr/svm_gamma
May 7, 2019
Merged

rth merged 10 commits into
scikit-learn:masterfrom
glemaitre:depr/svm_gamma

Conversation

@glemaitre

@glemaitre glemaitre commented May 6, 2019 •

Copy link
Copy Markdown
Member

Change the default from 'auto_deprecated' to 'scale' on all SVMs.
Revert the changes from https://github.com/scikit-learn/scikit-learn/pull/10331/files where gamma='scale' was added explicitly.

@glemaitre glemaitre changed the title [WIP] DEP change the default of gamma in SVM [MRG] DEP change the default of gamma in SVM May 6, 2019

@NicolasHug NicolasHug left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm.

do we want to raise an error with a better msg if gamma=auto_deprecated ?

Comment thread sklearn/svm/classes.py Outdated

.. versionchanged:: 0.22
The default value of ``gamma`` changed from ``'auto'`` to
``'scale'``.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: no backticks on string parameters

here and below

@glemaitre

Copy link
Copy Markdown
Member Author

do we want to raise an error with a better msg if gamma=auto_deprecated ?

Yes it should be better than the current error message.

@rth rth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. Thanks!

Yeah, even deprecation removal of a single parameter is quite a bit of changes.

@rth
rth merged commit 28480f4 into scikit-learn:master May 7, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
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.

3 participants