Skip to content

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

Closed

Description

@ogrisel

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.

Activity

  1. ogrisel commented on Oct 7, 2021

    @ogrisel
    MemberAuthor

    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?
  2. ogrisel commented on Mar 19, 2025

    @ogrisel
    MemberAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions