whereami
whereami copied to clipboard
ValueError: n_splits=10 cannot be greater than the number of members in each class.
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.
I am very new to open source community, but I do wanna try and work on this.
@Blue-Bird421 you're very welcome! what do you imagine the solution should be?
@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.
@kootenpv should I follow this and start working on the issue?