Skip to content

Unpin scikit-learn and set gamma to auto in SVC tests#461

Merged
mihaic merged 2 commits into
brainiak:masterfrom
ariekahn:fix_svc_tests
May 5, 2020
Merged

Unpin scikit-learn and set gamma to auto in SVC tests#461
mihaic merged 2 commits into
brainiak:masterfrom
ariekahn:fix_svc_tests

Conversation

@ariekahn

@ariekahn ariekahn commented May 5, 2020

Copy link
Copy Markdown
Contributor

Fixes #448

scikit-learn 0.22 changed the default value of gamma in SVC to 'scale' from 'auto' (see https://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html). This PR should hopefulyl fix the tests using SVC by explicitly setting gamma to 'auto' in line with previous behavior.

@buildbot-princeton

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

1 similar comment
@buildbot-princeton

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@mihaic

mihaic commented May 5, 2020

Copy link
Copy Markdown
Member

Jenkins, add to whitelist.

@ariekahn ariekahn changed the title Unpin scikit-learn and set scale to auto in SVC tests Unpin scikit-learn and set gamma to auto in SVC tests May 5, 2020
@mihaic

mihaic commented May 5, 2020

Copy link
Copy Markdown
Member

This looks great! Thanks, @ariekahn.

Could you please change the example code as well, in examples/fcma?

@mihaic mihaic merged commit cd020b8 into brainiak:master May 5, 2020
@mihaic

mihaic commented May 5, 2020

Copy link
Copy Markdown
Member

Thank you very much for your contribution, @ariekahn. It's great to not have to keep this important dependency pinned.

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.

fcma: test_mvpa_voxel_selection fails with scikit-learn 0.22

3 participants