You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to train any classification model (and this is most prevalent for binary classification), the following UserWarning from sklearn pops up at every step per subject: y_pred contains classes not in y_true.
To Reproduce
Steps to reproduce the behavior:
Use any data for binary classification (TIL, EGFR, ...).
Try to train.
See the following warnings:
The ``converters`` are currently experimental. It may not support operations including (but not limited to) Functions in ``torch.nn.functional`` that involved data dimension
[SNIP!]
********************
Starting validation :
********************
C:\Projects\GaNDLF\venv\Lib\site-packages\sklearn\metrics\_classification.py:2399: UserWarning: y_pred contains classes not in y_true
warnings.warn("y_pred contains classes not in y_true")
Describe the bug
When trying to train any classification model (and this is most prevalent for binary classification), the following
UserWarning
from sklearn pops up at every step per subject:y_pred contains classes not in y_true
.To Reproduce
Steps to reproduce the behavior:
The first warning comes from this line.
Expected behavior
This warning should come up just once.
Media
N.A.
Environment information
Additional context
N.A.
The text was updated successfully, but these errors were encountered: