-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[BUG] 'BalancedBaggingClassifier' and 'EasyEnsembleClassifier' objects have no attribute 'n_features_in_' #872
Comments
i have the same question ,Have you found a solution |
You have to downgrade the scikit-learn package using: pip3 install scikit-learn==1.0 -U |
I just posted the solution for me if you still need it! |
okay,i will try it,thank u very much! |
We solve the problem in |
I solved the issue in master. I will release it shortly. Basically, we broke some expectations in scikit-learn by moving some validation outside from |
Please note there is a known bug in 'EasyEnsembleClassifier' code! scikit-learn-contrib/imbalanced-learn#872
Cómo se resuelve el problema? |
Hi @glemaitre which commit and release was the fix deployed with? Thank you! |
certainly 0.9.0. We realeased 0.9.1 since |
Describe the bug
Error when using
BalancedBaggingClassifier
orEasyEnsembleClassifier
methods shown in the documentation: https://imbalanced-learn.org/stable/ensemble.htmlSteps/Code to Reproduce
Following examples from the documentation...
or
Actual Results
Similar error for
EasyEnsembleClassifier
Versions
Windows-10-10.0.19043-SP0
Python 3.9.7 | packaged by conda-forge | (default, Sep 29 2021, 19:15:42) [MSC v.1916 64 bit (AMD64)]
NumPy 1.20.3
SciPy 1.7.1
Scikit-Learn 1.0.1
Imbalanced-Learn 0.8.1
The text was updated successfully, but these errors were encountered: