はじめに
Floydhub とはDeepLearningのためのHerokuのようなサービスでTensorFlowやChainerを使ったプログラムをCloudで動かすことができます。
Floydhubの特徴は
- Chainer, TensorFlow, Keras, theano等が使える
- アカウントの作成にクレジットカードは必要ない
今回はとりあえずアカウントの作成からGet Startedをやってみます。
アカウントの作成
アカウントは無料で作れます。クレジットカードは今は必要ありません。https://www.floydhub.com からSign Upすると以下のWelcome Pageに移ります。

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を動かしてみる。

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に行くとプログラムが動いてるのを確認できます。

ちなみに、Failedとなっているのはプログラム名を間違えて実行したためです。
○ floyd run "python dynamic_rnn.py"
× floyd run "python dynamic-rnn.py"
$ floyd logs -t <RUN_ID>
で、学習の途中経過を確認できます。
学習結果はDataにあるみたいです。

おわり。