LoginSignup
36
45

More than 5 years have passed since last update.

とりあえずFloydhubで遊んでみた

Last updated at Posted at 2017-05-20

はじめに

Floydhub とはDeepLearningのためのHerokuのようなサービスでTensorFlowやChainerを使ったプログラムをCloudで動かすことができます。
Floydhubの特徴は

  • Chainer, TensorFlow, Keras, theano等が使える
  • アカウントの作成にクレジットカードは必要ない

今回はとりあえずアカウントの作成からGet Startedをやってみます。

アカウントの作成

アカウントは無料で作れます。クレジットカードは今は必要ありません。https://www.floydhub.com からSign Upすると以下のWelcome Pageに移ります。

floyd1.png

Get Started

Setup floyd-cli

アカウント作成後、メールが届いてるので認証します。
ターミナル上で、適当な作業ディレクトリに移動してからfloyd-cliをインストールします。

pip install -U floyd-cli

ログインします。

floyd login

すると、

Authentication token page will now open in your browser. Continue? [Y/n]:

と聞かれるので、yを入力し進めるとWelcome pageが開きます。Welcome Pageの一番下にあるauthentication tokenをコピーしてターミナル上に貼り付けるとLogin Successfulと出るはずです。

Run First Project

次にTensorflowを動かしてみる。

floyd2.png

Welcome Pageに書いてある通りに進めるだけです。

$ git clone https://github.com/floydhub/tensorflow-examples.git
Cloning into 'tensorflow-examples'...
remote: Counting objects: 74, done.
remote: Total 74 (delta 0), reused 0 (delta 0), pack-reused 74
Unpacking objects: 100% (74/74), done.

$ cd tensorflow-examples/3_NeuralNetworks/

$ floyd init dynamic-rnn
Project "dynamic-rnn" initialized in current directory

$ floyd run "python dynamic_rnn.py"

floyd run "python dynamic_rnn.py"の実行後にExperimentsに行くとプログラムが動いてるのを確認できます。

floyd3.png

ちなみに、Failedとなっているのはプログラム名を間違えて実行したためです。
○ floyd run "python dynamic_rnn.py"
× floyd run "python dynamic-rnn.py"

$ floyd logs -t <RUN_ID>

で、学習の途中経過を確認できます。
学習結果はDataにあるみたいです。

floyd4.png

おわり。

36
45
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
36
45