-
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] ValueError: Found array with 0 sample(s) #742
Comments
Did you find a fix for this ? Having the same issue here |
@hiyamgh I've pushed a fix, but as @glemaitre's commented on #743, I need to add something before it can be merged. But currently I have no time to do it.... |
Thank you @allenyllee for notifying me, from my side the error turned out to be that I was using |
Hi @hiyamgh, I am having the same issue. Did you fix the problem? I am very new to the field. I can hardy follow #743 |
Hi All! |
Is this fixed? I am having the same issue |
This is present in: |
Regarding the original use example, |
Describe the bug
When using SVMSMOTE on dataset which contains a minority class which has very few samples (may be < 10), it'll raise error
ValueError: Found array with 0 sample(s) (shape=(0, 600)) while a minimum of 1 is required.
Steps/Code to Reproduce
Expected Results
Running without error
Actual Results
Versions
System:
python: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) [GCC 7.3.0]
executable: /home/allenyl/anaconda3/bin/python
machine: Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid
Python deps:
pip: 19.2.2
setuptools: 41.0.1
sklearn: 0.21.3
numpy: 1.15.1
scipy: 1.4.1
Cython: 0.28.2
pandas: 0.24.1
The text was updated successfully, but these errors were encountered: