在切分数据集时提示:ValueError: The least populated class in y has only 1 member, which is too few. The minimum number of groups for any class cannot be less than 2.

ValueError:y中填充最少的类只有1个成员,这太少了。任何类别的最小组数不能少于2个

检查数据集发现最小的分类只有1个

解决方法:删掉最小的分类或者填充一个数据

Logo

分享最新的 NVIDIA AI Software 资源以及活动/会议信息,精选收录AI相关技术内容,欢迎大家加入社区并参与讨论。

更多推荐