estimator_html_repr#
- sklearn.utils.estimator_html_repr(estimator)[源代码]#
构建估计器的 HTML 表示。
在 用户指南 中阅读更多内容。
- 参数:
- estimator估计器对象
要可视化的估计器。
- 返回:
- html: str
估计器的 HTML 表示形式。
示例
>>> from sklearn.utils._repr_html.estimator import estimator_html_repr >>> from sklearn.linear_model import LogisticRegression >>> estimator_html_repr(LogisticRegression()) '<style>.sk-global...'