hands on machine learning第三章问题
import scipy.io
mnist = scipy.io.loadmat('mnist-original.mat')
mnist.keys()
X,y=mnist['data'],mnist['label']
X.shape
y.shape
import matplotlib
import matplotlib.pyplot as plt
some_digit = X[0]
some_digit_image=some_digit.reshape(28,28)
#报错误:valueError: cannot reshape array of size 70000 into shape (28,28)
如何解决,是不是本人没有安装tensorflow的原因?