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

ValueError: n_splits=10 cannot be greater than the number of members in each class. #50

Open
dkasak opened this issue Jan 25, 2019 · 4 comments

Comments

@dkasak
Copy link

dkasak commented Jan 25, 2019

When running whereami crossval, I get

ValueError: n_splits=10 cannot be greater than the number of members in each class.

I suspect this happens when the total number of samples is >= 10, but one of the locations has < 10 samples. This case should be checked for and handled gracefully the same way as the case when the total number of samples is < 10, i.e. not throw an exception.

@Blue-Bird421
Copy link

I am very new to open source community, but I do wanna try and work on this.

@kootenpv
Copy link
Owner

kootenpv commented Oct 6, 2023

@Blue-Bird421 you're very welcome! what do you imagine the solution should be?

@Blue-Bird421
Copy link

@kootenpv I plan on checking if Minimum number of samples from each unique location is greater than n_splits using try and Execute Block in similar manner to when the total number of samples is < 10, i.e. not throw an exception.

@Blue-Bird421
Copy link

@kootenpv should I follow this and start working on the issue?

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

3 participants