Skip to content

Add an example about how to visualize the results of GridSearchCV #14349

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

Closed
qinhanmin2014 opened this issue Jul 14, 2019 · 7 comments
Closed

Comments

@qinhanmin2014
Copy link
Member

I think it'll be useful to add an example about how to visualize the results of GridSearchCV, when there're two hyperparameters. SVC will be a good choice here.
Example from Andreas's book:
https://nbviewer.jupyter.org/github/amueller/introduction_to_ml_with_python/blob/master/05-model-evaluation-and-improvement.ipynb
2019-07-14_113820
Also see the official guide of libsvm (P7)
https://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf

@thomasjpfan
Copy link
Member

thomasjpfan commented Jul 14, 2019

I am working on this together with developing a plotting API. Here is what the API looks like for grid search: https://nbviewer.jupyter.org/github/thomasjpfan/sklearn_plot_api/blob/master/grid_search.ipynb

@qinhanmin2014
Copy link
Member Author

What's the relationship between this repo and scikit-learn? @thomasjpfan
I'd like to see some plotting functions in scikit-learn ASAP. I open this issue because I think an example is much easier to review and merge.

@thomasjpfan
Copy link
Member

@qinhanmin2014 I used that repo to experiment and share my prototypes of what a plotting api would look like in scikit-learn. I just opened #14357 to discuss the implementation and API.

I open this issue because I think an example is much easier to review and merge.

That makes sense. I am open to an narrative example that visualizes GridSearchCV.

@qinhanmin2014
Copy link
Member Author

That makes sense. I am open to an narrative example that visualizes GridSearchCV.

it's not urgent :)

@amueller
Copy link
Member

@qinhanmin2014
Copy link
Member Author

Thanks, we can only see the first plot of each example in the index, this is why I'm unable to find this example.

@smith558
Copy link
Contributor

I am working on this together with developing a plotting API. Here is what the API looks like for grid search: https://nbviewer.jupyter.org/github/thomasjpfan/sklearn_plot_api/blob/master/grid_search.ipynb

Is the plot_grid_search function from the sklearn_plot_api package available anywhere? or the package? Cannot find either.

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

No branches or pull requests

4 participants