whereami icon indicating copy to clipboard operation
whereami copied to clipboard

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

Open dkasak opened this issue 6 years ago • 4 comments

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.

dkasak avatar Jan 25 '19 07:01 dkasak

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

Blue-Bird421 avatar Oct 06 '23 10:10 Blue-Bird421

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

kootenpv avatar Oct 06 '23 10:10 kootenpv

@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 avatar Oct 08 '23 12:10 Blue-Bird421

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

Blue-Bird421 avatar Oct 10 '23 10:10 Blue-Bird421