如何修复“ValueError:无法将大小为 784 的数组重塑为形状 (8,8)”?

问题描述

enter image description here

嗨,有人可以帮我解决这个问题吗?我想在重塑数据的同时绘制数据。但是,错误出现。这是我的代码

X_test.shape
import matplotlib.pyplot as plt
plt.imshow(X_test[9999,].reshape(8,8))

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)