Skip to content

Fix Remove bandwidth parameter and add gamma to EigenPro #36

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

Merged
merged 9 commits into from
Oct 16, 2019

Conversation

Alex7Li
Copy link
Contributor

@Alex7Li Alex7Li commented Aug 18, 2019

Previously, the gamma and bandwidth parameters were redundant with the eigenpro classifier. This pull request ensures fixes this by only using the one more consistent with sklearn (gamma). To increase consistency with svm, we add the 'scale' parameter to gamma for automatic detection, which chooses gamma in the same way the svm does, using 1/(n_features*X.var()). This pull request closes issue 35.

@Alex7Li Alex7Li changed the title [Fix] Remove bandwidth parameter and replace with gamma in Eigenpro [MRG] [Fix] Remove bandwidth parameter and replace with gamma in Eigenpro Aug 31, 2019
Copy link
Contributor

@rth rth left a comment

Choose a reason for hiding this comment

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

Thanks @Alex7Li ! A few comments below. This does make comparison with SVC much more straightforward.

@Alex7Li
Copy link
Contributor Author

Alex7Li commented Sep 19, 2019

Thank you for spending your valuable time in catching my mistake @rth. I have implemented all of your suggestions in the latest commit.

Copy link
Contributor

@rth rth 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 @Alex7Li !

@rth rth changed the title [MRG] [Fix] Remove bandwidth parameter and replace with gamma in Eigenpro Fix Remove bandwidth parameter and add gamma to EigenPro Oct 16, 2019
@rth rth merged commit 86a2339 into scikit-learn-contrib:master Oct 16, 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.

gamma ignored in fast kernel classifier
2 participants