Skip to content

ShigekiKarita/cupy-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cupy-interface

cupy/chainerインストール方法

conda install anaconda
pip install cupy chainer "gym[atari]"

確認した version は以下の通りです。

  • cupy==2.0.0
  • chainer==3.0.0
  • gym==0.9.4

cupyの例

中央値の計算をします

python median.py # 何もエラーがでなければOKです

chainerの例(pole)

強化学習の入門問題であるポールと滑車の制御をします。方策勾配実装の簡単なテスト用

python pole.py | tee plot.log # スコアが200に到達すればOK
python plot_pole.py # 学習グラフ pole.pdf ができます

pole

合格ライン(オレンジ)をスコア(青)が超えるようになればOK

chainerの例(atari)

実際にPacman用のゲームAIを学習してみます。

python atari.py |& tee pacman.log # スコアが700に到達すればOK
python plot_pacman.py # 学習グラフ pacman.pdf ができます

質問・不具合報告などは shigekikarita@gmail.com または twitter: @kari_tech まで

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages