Skip to content

Fix CI tests issue with  #3314

@vfdev-5

Description

@vfdev-5

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 :

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions