This is documentation for an old release of Scikit-learn (version 1.4). Try the latest stable release (version 1.6) or development (unstable) versions.
sklearn.utils
.estimator_html_repr¶
- sklearn.utils.estimator_html_repr(estimator)[source]¶
Build a 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._estimator_html_repr import estimator_html_repr >>> from sklearn.linear_model import LogisticRegression >>> estimator_html_repr(LogisticRegression()) '<style>...</div>'