Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jeremiedbb
Copy link
Member

@jeremiedbb jeremiedbb commented Jul 28, 2022

We(I)'ve not been very consistent for the parameter constraints of the gamma, coef0 and degree parameters. They are parameters of kernel based estimators, usually directly passed to the kernel. This PR uniformizes the constraint.
Note that degree=0 and gamma=0 lead to constant kernel which is probably not very useful but we keep them for now, at least for backward compat.

cc/ @glemaitre

@jeremiedbb jeremiedbb added the Validation related to input validation label Jul 28, 2022
Copy link
Member

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

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

LGTM. I am OK with those new constraints allowing support for constant kernels.

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants