Skip to content

Display all parameter values in a tabular for a tab of the notebook HTML repr of estimators #21266

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

Open
Tracked by #26595
ogrisel opened this issue Oct 7, 2021 · 2 comments · May be fixed by #30763
Open
Tracked by #26595

Display all parameter values in a tabular for a tab of the notebook HTML repr of estimators #21266

ogrisel opened this issue Oct 7, 2021 · 2 comments · May be fixed by #30763

Comments

@ogrisel
Copy link
Member

ogrisel commented Oct 7, 2021

Describe the workflow you want to enable

I would to make it easy to quickly introspect the default hyperparameter values of scikit-learn estimator in a jupyter notebook session.

Describe your proposed solution

The HTML widget returned by BaseEstimator._repr_mimebundle_ could display a tab with a tabular rendering of the content of the estimator.get_params() method.

In the case of meta-estimators with complex diagrams, we could optionally have an option to display this only for a subestimator of interest but I have no particular UI suggestion in mind.

Additional context

Loosely related to #21240 which is about another improvement, this time for the text rendering of complex estimators.

@ogrisel
Copy link
Member Author

ogrisel commented Oct 7, 2021

Other ideas:

  • for fitted estimators: make it possible to display feature_names_in_ as a list (possibly ellipsed in the middle if longer than 100 elements).
  • for fitted estimators: list fitted attribute names and display value on click?

@ogrisel
Copy link
Member Author

ogrisel commented Mar 19, 2025

Note that it's possible to generate links to the relevant part of the online doc for each individual parameter using text fragments:

#30763 (comment)

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

Successfully merging a pull request may close this issue.

1 participant