Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI tests issue with #3314

Closed
vfdev-5 opened this issue Dec 10, 2024 · 1 comment · Fixed by #3316
Closed

Fix CI tests issue with #3314

vfdev-5 opened this issue Dec 10, 2024 · 1 comment · Fixed by #3316

Comments

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Dec 10, 2024

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 :

Copy link

Hey 👋, I've just created a thread for this issue on PyTorch-Ignite Discord where you can quickly talk to the community on the topic.

🤖 This comment was automatically posted by Discuss on Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant