ValueError: Cannot have number of splits n_splits=3 greater than the number of samples: 1

If the number of splits is greater than number of samples, you will get the first error.

If you divide the number of classes more than the number of samples, we will report this error.

Therefore, check whether the data is read correctly.

Published 38 original articles · 98 won praise · views 360 000 +

Guess you like

Origin blog.csdn.net/xijuezhu8128/article/details/87861726