问题描述
在这里,我正在使用Fahion-mnist数据集。它已经分为测试和培训。我希望每个img都是28x28x3形状。
X_train shape: (60000,784)
X_test shape: (10000,784)
# Reshaping
X_train = X_train.values.reshape(-1,28,3)
print("X_train shape: ",X_train.shape)
**output:** (20000,3)
可以,但是可以!!
X_test = X_test.values.reshape(-1,3)
print("X_test shape: ",X_test.shape)
ValueError Traceback (most recent call last)
<ipython-input-110-9f1d9f52d152> in <module>()
1 X_test = X_test.values.reshape(-1,3)
2 print("X_test shape: ",X_test.shape)
**ValueError: cannot reshape array of size 7840000 into shape (28,3)**
请帮助我
我正在遵循此操作,但是我已删除了“灰度”部分。 https://www.kaggle.com/orhansertkaya/convolutional-neural-network-cnn-fashion-mnist
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)