###前提・実現したいこと
ゼロから学ぶdeep learningの3.6.3のバッチ処理を実行しているんですが
###発生している問題・エラーメッセージ
x,_= get_data() Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'get_data' is not defined
###該当のソースコード
python
1x, _ =get_data()
###試したこと
def get_data():
(x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, flatten=True, one_hot_label=False)
return x_test, t_test
打ったら
x,_=get_data()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in get_data
NameError: name 'load_mnist' is not defined
と出ます。
訳が分からないです
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/05/03 13:21