File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11from pathlib import Path
22from typing import Any
33
4+ import numpy as np
5+
46from autointent import Context , Dataset , Pipeline
57from autointent ._callbacks import CallbackHandler , OptimizerCallback
68from 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 ),
You can’t perform that action at this time.
0 commit comments