Skip to content

nabehide/DQN_pendulum

 
 

Repository files navigation

DQN_pendulum

Swinging up a pendulm by Deep Q Network

詳細はQiitaを参照のこと。

Requirement

  • chainer
  • Jupyter,matplotlib,numpy
  • svgwrite(Jupyterでの確認用なので関連コードを除去すれば不要)
  • imageio(アニメ生成用)

Usage

python dqn_pendulum.py

model/以下に1000回おきのモデルとハイスコアを出したモデルが生成されます。 収束状況のログはlog.csvに書き込まれます。

python make_gif.py model/000000.model

などで、アニメーションgifとプロファイルのpngが生成されます。

adding PyQt4 ver. by nabehide

  • works on Windows and Mac OSX, (Python 2.7)
  • requires "PyQt4" and "threading" instead of Jupyter
  • To execute, type python dqn_pendulum_PyQt4.py

About

Swinging up a pendulm by Deep Q Network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%