-
-
Notifications
You must be signed in to change notification settings - Fork 666
Closed
Labels
Description
Fix failing test:
=========================== short test summary info ============================
FAILED tests/ignite/metrics/test_roc_auc.py::test_check_compute_fn - Failed: DID NOT WARN. No warnings of type (<class 'ignite.metrics.epoch_metric.EpochMetricWarning'>,) were emitted.
Emitted warnings: [ UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.'),
UndefinedMetricWarning('Only one class is present in y_true. ROC AUC score is not defined in that case.')].
======================== 1 failed, 14 warnings in 3.43s ========================
Most probably the reason of the failure is the new version of scikit-learn: 1.16.0 released 16h ago.
Let's check the test and adapt the warning type to the one that is raised by scikit-learn.
Reported :