PERCY'S DIARY

喉が渇いた

「ゼロから作るDeep Learning」の 503 Service Temporarily Unavailable の対処法

train_convnet.pyとかで ValueError: not enough values to unpack (expected 4, got 3) のエラーで動かんね

(x_train, t_train), (x_test, t_test) = load_mnist(flatten=False)

ダウンロードのところは以下の処理に変更したらなんとかなるっぽい

from keras.datasets import mnist
from keras.utils import np_utils
(x_train, t_train), (x_test, t_test) = mnist.load_data()
x_train = x_train.astype(np.float32)
x_train /= 255.0
x_test = x_test.astype(np.float32)
x_test /= 255.0

x_train = x_train.reshape(-1, 1, 28, 28)
x_test = x_test.reshape(-1, 1, 28, 28)