Skip to content

Added get_params, set_params and params moved to dictionary #18

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 10 commits into from
May 16, 2016

Conversation

svecon
Copy link
Contributor

@svecon svecon commented May 16, 2016

I wanted to use the metric-learners in a scikit Pipeline and GridSearchCV. GridSeachCV uses get_params and set_params and so I implemented both methods on the BaseMetricLearner.

Consequently I had to move all learner parameters to dictionaries so that these two methods would get to their params.

@perimosocordiae
Copy link
Contributor

Looks good, thanks!

@perimosocordiae perimosocordiae merged commit b9402a9 into scikit-learn-contrib:master May 16, 2016
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.

2 participants