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

Midihum could not humanize the given file: 'super' object has no attribute '__sklearn_tags__' #7

Closed
gfazzito opened this issue Jan 6, 2025 · 3 comments

Comments

@gfazzito
Copy link

gfazzito commented Jan 6, 2025

Tried to run on Windows 11. All the dependencies were downloaded, but there's a problem with scikit-learn:

midihum_model loading model from model_cache\midihum.json and model_cache\midihum_scaler.json
C:\Users\UserName\AppData\Local\Programs\Python\Python313\Lib\site-packages\sklearn\utils_tags.py:354: FutureWarning: The MyXGBRegressor or classes from which it inherits use _get_tags and _more_tags. Please define the __sklearn_tags__ method, or inherit from sklearn.base.BaseEstimator and/or other appropriate mixins such as sklearn.base.TransformerMixin, sklearn.base.ClassifierMixin, sklearn.base.RegressorMixin, and sklearn.base.OutlierMixin. From scikit-learn 1.7, not defining __sklearn_tags__ will raise an error.
warnings.warn(
midihum could not humanize the given file: 'super' object has no attribute 'sklearn_tags'

How can this be solved?

@erwald
Copy link
Owner

erwald commented Jan 6, 2025

Seems related to dmlc/xgboost#11093, hopefully it'll be fixed when xgboost has released a new version. For now, I've downgraded to scikit-learn 1.5.

@erwald
Copy link
Owner

erwald commented Jan 6, 2025

@gfazzito can you pull the latest main and see if that works?

@gfazzito
Copy link
Author

Yes, downgrading scikit-learn to 1.5 solved the issue 👍🏽

@erwald erwald closed this as completed Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants