Skip to content

InconsistentVersionWarning because LabelEncoder from version 0.24.2 of scikit-learn #157

@nabilalibou

Description

@nabilalibou

Hello,

Just want to point out the fact that predicting with yasa.SleepStaging() with recent sklearn versions seems to print an InconsistentVersionWarning:

\site-packages\sklearn\base.py:348: InconsistentVersionWarning: Trying to unpickle estimator LabelEncoder from version 0.24.2 when using version 1.3.2. This might lead to breaking code or invalid results. 
Use at your own risk. For more info please refer to: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations

I am not sure about this warning origin and how it can be fixed. I put it here in case something can be solved on the yasa side and if some people also have this warning using SleepStaging().

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions