目次
文書の過去の版を表示しています。
(1)Kerasを使用するためのimport文
<KerasでMNIST目次>
Kerasプログラミングの全体図
(1)Kerasを使用するためのimport文
(2)データ準備(Keras)
(3)モデル設定(Keras)
(4)モデル学習(Keras)
(5)結果の出力(Keras)
(6)学習結果の保存(Keras)
(7)推測(Keras)
最初に以下をコピペするだけですが、プログラムごとに、さらにimport文の追加が必要になる場合があります。
import keras from keras.models import Sequential from keras.layers import Dense, Dropout from keras.optimizers import RMSprop from keras.utils import np_utils from sklearn.model_selection import train_test_split import numpy as np from PIL import Image import os
始めはかなりとっつきにくいimport文ですが、pythonの勉強をしていくにつれて、徐々に、慣れてきます。
keras特有のもの以外のimport文については、以下のリンクをご覧ください。
機械学習で用いるpythonの”import xxx”まとめ
2017/10/25
http://twosquirrel.mints.ne.jp/?p=20344
参考文献
初めてKerasプログラミングをやるときの超おすすめ本。
<html>
<iframe style=“width:120px;height:240px;” marginwidth=“0” marginheight=“0” scrolling=“no” frameborder=“0” src=“rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=twosquirrel-22&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=4873117585&linkId=13a7db2c19cc5f40d6ab48906de8abd1”></iframe>
<iframe style=“width:120px;height:240px;” marginwidth=“0” marginheight=“0” scrolling=“no” frameborder=“0” src=“rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=twosquirrel-22&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=4839962510&linkId=d722909965b5eab4196d370757843f6f”></iframe>
</html>
リンク
目次
Kerasプログラミングの全体図
(1)Kerasを使用するためのimport文
(2)データ準備(Keras)
(3)モデル設定(Keras)
(4)モデル学習(Keras)
(5)結果の出力(Keras)
(6)学習結果の保存(Keras)
(7)推測(Keras)