estimator_html_repr#
- sklearn.utils.estimator_html_repr(estimator)[source]#
构建估算器的 HTML 表示形式。
Read more in the User Guide.
- 参数:
- estimator估计器对象
The estimator to visualize.
- 返回:
- html: str
HTML representation of estimator.
示例
>>> from sklearn.utils._repr_html.estimator import estimator_html_repr >>> from sklearn.linear_model import LogisticRegression >>> estimator_html_repr(LogisticRegression()) '<style>#sk-container-id...'