estimator_html_repr#

sklearn.utils.estimator_html_repr(estimator)[源文件]#

构建一个估计器的 HTML 表示。

详情请参阅用户指南

参数:
estimator估计器对象

要可视化的估计器。

返回:
html: 字符串

估计器的 HTML 表示。

示例

>>> from sklearn.utils._repr_html.estimator import estimator_html_repr
>>> from sklearn.linear_model import LogisticRegression
>>> estimator_html_repr(LogisticRegression())
'<style>#sk-container-id...'