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 using the EEGClassifier class from the braindecode library for training on small datasets, two significant issues arise:
Loss Calculation Failure: The classifier fails to compute the loss when the training dataset is too small. This problem occurs due to the inability of the loss function to process insufficient data samples, which is a common challenge in machine learning models but should be gracefully handled or documented for users of EEGClassifier.
Unexpected Class Generation in Binary Classification: Despite being configured for binary classification tasks, the classifier sometimes generates predictions for classes outside the binary scope. This behavior is unexpected and can lead to erroneous interpretation of the model's predictions. It suggests a possible issue in how the class labels are being inferred or managed within the classifier, especially under conditions where the model is expected to distinguish between two classes only.
Expected Behavior
The EEGClassifier should provide a clear error message or documentation indicating the minimum dataset size required for effective training and loss calculation. If possible, implementing a fallback mechanism or a warning that suggests best practices for training on small datasets could enhance usability.
For binary classification tasks, the classifier should strictly limit its predictions to the two expected classes. Any deviation from this should be addressed by ensuring that the class inference mechanism correctly interprets the training data and the specified classes parameter, if provided.
The text was updated successfully, but these errors were encountered:
Thanks for pointing out those issues! 🙏 Could you share a bit of code to help us see what's happening? It'd really help us get to the bottom of this faster.
Also, would you like to try fixing them by creating a PR (Pull Request)? It’s a great way to dive into our open-source project and make a difference. Plus, we all get to learn and improve together. What do you think?
When using the
EEGClassifier
class from thebraindecode
library for training on small datasets, two significant issues arise:Loss Calculation Failure: The classifier fails to compute the loss when the training dataset is too small. This problem occurs due to the inability of the loss function to process insufficient data samples, which is a common challenge in machine learning models but should be gracefully handled or documented for users of
EEGClassifier
.Unexpected Class Generation in Binary Classification: Despite being configured for binary classification tasks, the classifier sometimes generates predictions for classes outside the binary scope. This behavior is unexpected and can lead to erroneous interpretation of the model's predictions. It suggests a possible issue in how the class labels are being inferred or managed within the classifier, especially under conditions where the model is expected to distinguish between two classes only.
Expected Behavior
EEGClassifier
should provide a clear error message or documentation indicating the minimum dataset size required for effective training and loss calculation. If possible, implementing a fallback mechanism or a warning that suggests best practices for training on small datasets could enhance usability.classes
parameter, if provided.The text was updated successfully, but these errors were encountered: