File: _estimator_html_repr.py

package info (click to toggle)
scikit-learn 1.7.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,752 kB
  • sloc: python: 219,120; cpp: 5,790; ansic: 846; makefile: 191; javascript: 110
file content (34 lines) | stat: -rw-r--r-- 898 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Authors: The scikit-learn developers
# SPDX-License-Identifier: BSD-3-Clause

import warnings

from ._repr_html.base import _HTMLDocumentationLinkMixin
from ._repr_html.estimator import (
    _get_visual_block,
    _IDCounter,
    _VisualBlock,
    _write_estimator_html,
    _write_label_html,
    estimator_html_repr,
)

__all__ = [
    "_HTMLDocumentationLinkMixin",
    "_IDCounter",
    "_VisualBlock",
    "_get_visual_block",
    "_write_estimator_html",
    "_write_label_html",
    "estimator_html_repr",
]

# TODO(1.8): Remove the entire module
warnings.warn(
    "Importing from sklearn.utils._estimator_html_repr is deprecated. The tools have "
    "been moved to sklearn.utils._repr_html. Be aware that this module is private and "
    "may be subject to change in the future. The module _estimator_html_repr will be "
    "removed in 1.8.0.",
    FutureWarning,
    stacklevel=2,
)