W3cubDocs

/scikit-learn

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>'

© 2007–2025 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.6/modules/generated/sklearn.utils.estimator_html_repr.html