File: roc_auc.py

package info (click to toggle)
pytorch-ignite 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,712 kB
  • sloc: python: 46,874; sh: 376; makefile: 27
file content (21 lines) | stat: -rw-r--r-- 687 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
""" ``ignite.contrib.metrics.roc_auc`` was moved to ``ignite.metrics.roc_auc``.
Note:
    ``ignite.contrib.metrics.roc_auc`` was moved to ``ignite.metrics.roc_auc``.
    Please refer to :mod:`~ignite.metrics.roc_auc`.
"""

import warnings

removed_in = "0.6.0"
deprecation_warning = (
    f"{__file__} has been moved to ignite/metrics/roc_auc.py"
    + (f" and will be removed in version {removed_in}" if removed_in else "")
    + ".\n Please refer to the documentation for more details."
)
warnings.warn(deprecation_warning, DeprecationWarning, stacklevel=2)
from ignite.metrics.roc_auc import ROC_AUC, RocCurve

__all__ = ["RocCurve", "ROC_AUC"]

RocCurve = RocCurve
ROC_AUC = ROC_AUC