/
train_test_label_drift.py
31 lines (23 loc) · 1.25 KB
/
train_test_label_drift.py
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
# ----------------------------------------------------------------------------
# Copyright (C) 2021-2023 Deepchecks (https://www.deepchecks.com)
#
# This file is part of Deepchecks.
# Deepchecks is distributed under the terms of the GNU Affero General
# Public License (version 3 or later).
# You should have received a copy of the GNU Affero General Public License
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------------
#
"""This module contains the code that handles users' use of the deprecated TrainTestLabelDrift.
Its name was changed to LabelDrift (removed the TrainTest prefix).
"""
import warnings
from deepchecks.vision.checks.train_test_validation.label_drift import LabelDrift
class TrainTestLabelDrift(LabelDrift):
"""The TrainTestLabelDrift check is deprecated and will be removed in the 0.14 version.
Please use the LabelDrift check instead.
"""
def __init__(self, *args, **kwargs):
warnings.warn("The TrainTestLabelDrift check is deprecated and will be removed in the 0.14 version."
"Please use the LabelDrift check instead.", DeprecationWarning, stacklevel=2)
LabelDrift.__init__(self, *args, **kwargs)