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

在这里插入图片描述


问题描述:

在训练模型时使用到了交叉验证,当我设置 n_split = 10 出现如下问题 ValueError: n_splits=10 cannot be greater than the number of members in each class.

在这里插入图片描述

Traceback (most recent call last):
  File "E:\Code\PyCharm\Contrast learning\main_real.py", line 

猜你喜欢

转载自blog.csdn.net/m0_47256162/article/details/132533811