0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

keras-rlとOpenAI Gymで強化学習(cartpoleサンプル)

Last updated at Posted at 2018-02-10

はじめに

今回はkeras-rlとOpenAI Gymで強化学習を試します。まずはサンプルのcartpoleから。

参考にしたブログ、コードなど

 cartpoleサンプルについては、多くのブログ、githubを参考にさせていただきました。

http://cookie-box.hatenablog.com/entry/2017/01/15/235916
https://qiita.com/inoory/items/e63ade6f21766c7c2393
https://gym.openai.com/envs/CartPole-v0/
https://github.com/matthiasplappert/keras-rl/blob/master/examples/dqn_cartpole.py

cartpole サンプル

 はまったところは一点だけ。h5pyが入っていないとエラーになる。

ImportError: `save_weights` requires h5py.

トレーニング結果

 20000stepぐらいだと、まだ倒しまくるが、

 50000step完了すると、ほぼ安定する。

最後に

 まずはシンプルなcartpoleを試してみました。次は atari breakoutです。now on training. coming soon!

0
2
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
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?