|
6 | 6 | import warnings
|
7 | 7 |
|
8 | 8 | import numpy as np
|
| 9 | +from deprecated.sphinx import deprecated |
9 | 10 |
|
10 | 11 | from aeon.benchmarking.metrics.anomaly_detection._util import check_y
|
11 | 12 | from aeon.utils.validation._dependencies import _check_soft_dependencies
|
12 | 13 |
|
13 | 14 |
|
| 15 | +# TODO: Remove in v1.2.0 |
| 16 | +@deprecated( |
| 17 | + version="1.1.0", |
| 18 | + reason="range_precision is deprecated and will be removed in v1.2.0. " |
| 19 | + "Please use ts_precision from the range_metrics module instead.", |
| 20 | + category=FutureWarning, |
| 21 | +) |
14 | 22 | def range_precision(
|
15 | 23 | y_true: np.ndarray,
|
16 | 24 | y_pred: np.ndarray,
|
@@ -70,6 +78,13 @@ def range_precision(
|
70 | 78 | return ts_precision(y_true, y_pred, alpha=alpha, cardinality=cardinality, bias=bias)
|
71 | 79 |
|
72 | 80 |
|
| 81 | +# TODO: Remove in v1.2.0 |
| 82 | +@deprecated( |
| 83 | + version="1.1.0", |
| 84 | + reason="range_recall is deprecated and will be removed in v1.2.0. " |
| 85 | + "Please use ts_recall from the range_metrics module instead.", |
| 86 | + category=FutureWarning, |
| 87 | +) |
73 | 88 | def range_recall(
|
74 | 89 | y_true: np.ndarray,
|
75 | 90 | y_pred: np.ndarray,
|
@@ -131,6 +146,13 @@ def range_recall(
|
131 | 146 | return ts_recall(y_true, y_pred, alpha=alpha, cardinality=cardinality, bias=bias)
|
132 | 147 |
|
133 | 148 |
|
| 149 | +# TODO: Remove in v1.2.0 |
| 150 | +@deprecated( |
| 151 | + version="1.1.0", |
| 152 | + reason="range_f_score is deprecated and will be removed in v1.2.0. " |
| 153 | + "Please use ts_fscore from the range_metrics module instead.", |
| 154 | + category=FutureWarning, |
| 155 | +) |
134 | 156 | def range_f_score(
|
135 | 157 | y_true: np.ndarray,
|
136 | 158 | y_pred: np.ndarray,
|
|
0 commit comments