Giter Site home page Giter Site logo

muskanmahajan37 / hyperparameter_search_plotting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gelijergensen/hyperparameter_search_plotting

0.0 0.0 0.0 350 KB

Some quick code for plotting the results of a hyperparameter search

License: MIT License

Python 100.00%

hyperparameter_search_plotting's Introduction

hyperparameter_search_plotting

Some quick code for plotting the results of a hyperparameter search

Usage

License is MIT. Feel free to use and modify as you feel suit! The format for the inputs is designed to exactly match the output from sklearn GridSearchCV

If you have a GridSearchCV already, then you can run the code minimally with:

gridsearch = ...
parameters = gridsearch.cv_results_["params"]
scores = gridsearch.cv_results_["mean_test_score"]

fig = plot_hyperparameter_results(all_params, all_scores)
save_figure(fig, "filename.png")

Examples

Some example plots. Notice that rather than trying to view a higher-dimensional space directly, we are instead viewing aggregates (the maximum value) across all dimensions except for two.

Test for two variables

Test for three variables

Test for four variables

You can also change the bounds of the region where parameters are plotted independly for each parameter and also change the bounds of the colorbar.

Test with bounding

Since the only inputs are lists of the parameters tested and the scores, you can simply concatenate results from different runs together and get new plots.

Test with multiple datasets

hyperparameter_search_plotting's People

Contributors

gelijergensen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.