ValueError: The number of classes has to be greater than one; got 1 class

ValueError:类的数目必须大于1;得到1个类

在这里插入图片描述

查看数据

数据全为0

打乱数据集

shuffle_index = np.random.permutation(60000) 
X_train, y_train = X_train[shuffle_index], y_train[shuffle_index]
发布了50 篇原创文章 · 获赞 51 · 访问量 2467

猜你喜欢

转载自blog.csdn.net/hezuijiudexiaobai/article/details/104619058