estimator_html_repr
- sklearn.utils.estimator_html_repr(estimator)[source]
-
Build an HTML representation of an estimator.
Read more in the User Guide.
- Parameters:
-
- estimatorestimator object
-
The estimator to visualize.
- Returns:
-
- html: str
-
HTML representation of estimator.
Examples
>>> from sklearn.utils._repr_html.estimator import estimator_html_repr >>> from sklearn.linear_model import LogisticRegression >>> estimator_html_repr(LogisticRegression()) '<style>.sk-global...'
© 2007–2026 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.9/modules/generated/sklearn.utils.estimator_html_repr.html