この文書の現在のバージョンと選択したバージョンの差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| 
                    tensorflowとkeras2.0のインストール [2017/07/27] adash333 作成  | 
                
                    tensorflowとkeras2.0のインストール [2018/10/07] (現在) | 
            ||
|---|---|---|---|
| ライン 1: | ライン 1: | ||
| - | ====== TensorflowとKerasのインストール ====== | + | ===== (3)TensorflowとKerasのインストール ===== | 
| + | 初めてのTensorflow ~Kerasで機械学習プログラミング~\\ | ||
| + | http://twosquirrel.mints.ne.jp/?p=19402 | ||
| + | <html> | ||
| + | <iframe width="640" height="360" src="https://www.youtube.com/embed/xFJgBrr0R3E" frameborder="0" allowfullscreen></iframe> | ||
| + | </html> | ||
| + | 初めてのTensorflow ~Kerasで機械学習プログラミング~  | ||
| + | (3)WindowsにTensorflowとKerasのインストール | ||
| - | [Keras/TensorFlow] Keras(Tensorflow)の環境構築 | + | 0.環境構築の際の注意点 | 
| + | 1.Anacondaのインストール | ||
| + | |||
| + | 2.Tensorflowのインストール(←今回はここから) | ||
| + | |||
| + | 3.Kerasのインストール | ||
| + | |||
| + | 4.Keras(Tensorflow backend)でHello World! | ||
| + | |||
| + | ====前回まで==== | ||
| + | 前回の動画で、WindowsにPython3.6をAnacondaでインストールしました。 | ||
| + | 今回は、Anaconda Prompt上で、Tensorflow 1.2とKeras2.0をインストールします。 | ||
| + | |||
| + | ==== 2.Tensorflowのインストール ==== | ||
| + | Windowsのスタートボタンから、Anaconda Promptを起動。 | ||
| + | <code> | ||
| + | pip install --upgrade tensorflow keras | ||
| + | </code> | ||
| + | |||
| + | 何かしらのエラーが出るので、そのあと、 | ||
| + | |||
| + | <code> | ||
| + | pip install --upgrade tensorflow keras | ||
| + | pip install keras | ||
| + | </code> | ||
| + | |||
| + | とします。kerasがインストールされたら、以下のコマンドを入力して試します。 | ||
| + | |||
| + | <code> | ||
| + | jupyter notebook | ||
| + | </code> | ||
| + | |||
| + | すると、自動的にWEBブラウザ(Chrome推奨)が立ち上がります。 | ||
| + | |||
| + | New > Python3 で、新しいタブを立ち上げて、以下を入力。 | ||
| + | |||
| + | <code> | ||
| + | import keras | ||
| + | </code> | ||
| + | |||
| + | Shift + Enter を押すと、うまくいっていれば、 | ||
| + | |||
| + | 「Using Tensorflow backend.」 | ||
| + | |||
| + | と表示されます。 | ||
| + | |||
| + | ===== 環境:2017/7/27時点で最新版 ===== | ||
| + | Windows8.1\\ | ||
| + | Anaconda 4.4.0 64-bit\\ | ||
| + | Python 3.6\\ | ||
| + | Tensorflow 1.2\\ | ||
| + | Keras 2.0\\ | ||
| + | |||
| + | ===== 参考 ===== | ||
| + | [Keras/TensorFlow] Keras(Tensorflow)の環境構築 | ||
| + | agumon | ||
| + | 2017年05月03日に更新 | ||
| http://qiita.com/agumon/items/4d7826c2c39d0af868bd | http://qiita.com/agumon/items/4d7826c2c39d0af868bd | ||
| + | |||
| + | 2017-04-13 | ||
| + | WindowsにPython3系とnumpy・scipyをインストールする方法(2/3 ライブラリ編)\\ | ||
| + | http://mstn.hateblo.jp/entry/2017/04/13/014519 | ||