Skip to content

Commit 0e14a72

Browse files
committed
fix
1 parent 7512e2e commit 0e14a72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/callback/test_callback.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from pathlib import Path
22
from typing import Any
33

4+
import numpy as np
5+
46
from autointent import Context, Dataset, Pipeline
57
from autointent._callbacks import CallbackHandler, OptimizerCallback
68
from autointent.configs import LoggingConfig, VectorIndexConfig
@@ -195,7 +197,7 @@ def test_pipeline_callbacks():
195197
"decision_f1": 0.6666666666666666,
196198
"decision_precision": 0.625,
197199
"decision_recall": 0.75,
198-
"decision_roc_auc": "Only one class present in y_true. ROC AUC score is not defined in that case.",
200+
"decision_roc_auc": np.nan,
199201
}
200202
},
201203
),
@@ -209,7 +211,7 @@ def test_pipeline_callbacks():
209211
"decision_f1": 0.6666666666666666,
210212
"decision_precision": 0.625,
211213
"decision_recall": 0.75,
212-
"decision_roc_auc": "Only one class present in y_true. ROC AUC score is not defined in that case.",
214+
"decision_roc_auc": np.nan,
213215
}
214216
},
215217
),

0 commit comments

Comments
 (0)