第8章現代の畳み込みニューラルネットワーク
8.4.3. Training8.4.3 訓練
As before, we train our model using the Fashion-MNIST dataset. We transform it to pixel resolution before invoking the training procedure.
英語のヒント
前と同じように、Fashion-MNISTのデータセットを使ってモデルを訓練する。訓練の手順を呼び出す前に、画像を画素の解像度に変換する。
model = GoogleNet(lr=0.01)
trainer = d2l.Trainer(max_epochs=10, num_gpus=1)
data = d2l.FashionMNIST(batch_size=128, resize=(96, 96))
model.apply_init([next(iter(data.get_dataloader(True)))[0]], d2l.init_cnn)
trainer.fit(model, data)