ディープラーニングで使用される手書き数字の画像セット「MNIST」の読み方を教えてください。
google検索で探した MNISTに関するサイトのコードをanacondaに入力してもエラーメッセージが表示されるだけでした。
MNISTのダウンロードは指定のコードをanacondaに入力するだけで良いのでしょうか?
*一応、書籍に書いてある以下のコードをanacondaで実装したのですが、エラーが出て読み込めませんでした。
import sys, os
sys.path.append(os.pardir)
from dataset.mnist import load_mnist
(x_train, t_train), (x_test, t_test) = load_minist(flatten=True, normalize=False)
print(x_train.shape)
print(t_train.shape)
print(x_test.shape)
print(t_test.ahape)
追記
エラーメッセージは以下になります。よろしくお願いします。
ImportError Traceback (most recent call last)
<ipython-input-1-59fbbab7c2f3> in <module>()
1 import sys, os
2 sys.path.append(os.pardir)
----> 3 from dataset.mnist import load_mnist
4 (x_train, t_train), (x_test, t_test) = load_minist(flatten=True, normalize=False)
5
ImportError: No module named 'dataset'

回答1件
あなたの回答
tips
プレビュー