Skip to content
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

FEAT: enhance scikit-learn's grid search #883

Open
1 of 4 tasks
sylvaincom opened this issue Dec 9, 2024 · 0 comments
Open
1 of 4 tasks

FEAT: enhance scikit-learn's grid search #883

sylvaincom opened this issue Dec 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request epic This issue represents major product increments

Comments

@sylvaincom
Copy link
Contributor

sylvaincom commented Dec 9, 2024

Is your feature request related to a problem? Please describe.

As a user, I want to automatically get insights when performing the key machine learning task of grid search.

Describe the solution you'd like

After train-test split and cross-validation, the next ML diagnose we could tackle is grid search. Same as the CrossValidationReporter, we could have a GridSearchCVReporter that automatically shows a Parallel coordinates plot:

Enregistrement.de.l.ecran.2024-12-19.a.16.40.35.mov

Inspiration

API

Should be like CrossValidationReporter in philosophy, but here scikit-learn's grid search returns many things:

from skore import GridSearchCVReporter

param_grid = {
    "my_param_1": range(1, 10),
    "my_param_2": ["value_1", "value_2"],
}
grid_search_reporter = GridSearchCVReporter(
    my_estimator(), param_grid=param_grid, scoring=my_score
)
grid_search_reporter.fit(X)

my_project.put("gridsearch_reporter", gridsearch_reporter)
gridsearch_reporter.plots.parallel_coordinates

# like scikit-learn's grid search
print(gridsearch_reporter.cv_results_)
print(gridsearch_reporter.best_estimator_)
print(gridsearch_reporter.best_score_)
print(gridsearch_reporter.best_params_)

Other ideas for the grid search for next iteration

Ready Checklist

  • Design specification approved (by @MarieS-WiMLDS)
  • Technical specification approved
  • Critical considerations addressed
  • (Optional) Planning requirements met
@sylvaincom sylvaincom added enhancement New feature or request epic This issue represents major product increments labels Dec 9, 2024
@sylvaincom sylvaincom self-assigned this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request epic This issue represents major product increments
Projects
None yet
Development

No branches or pull requests

1 participant