ラベル

AI Forecast 8306MUFG (215) Social (75) life (70) Financial (62) IT (57) Proposal (56) idea (50) Fund Management (48) Trading (43) economics (42) Covid-19 (40) AI (38) Hedge Fund (36) Risk (36) Culture (31) BOJ (29) Science (26) hobby (24) accounting (17) Apps (16) career (11) job (7) Travel (6) Hiking (5) emotion (5) music (3) Statarb (2) piano (2)

2021年4月11日日曜日

Matter.jsでカートポール CartPole on Matter.js

 Matter.jsでカートポール

CartPole on Matter.js


カートポール強化学習をMatter.jsで作る準備として、カートポール動作環境を作ってみた。なお、いつものように、下のデモはあなたの端末上で走っている。プログラムはこちら。Just made CartPole model on Matter.js to use as a CartPole Reinforcement Learning platform. Note that below demo is running on your machine as always.  Code is here. 
制御はポールのX座標の直下にボールを移動するハードコードとした。これだけで釣り合ってしまうが、マウスで系を乱すと、それなりにつり合いは崩れるので、マウスでドラッグしてみて欲しい。Temporalily, control is to move ball's X axis toward the Pole's X axis, hard coded. Looks this balances well already however, if you disturb the system by mouse, the balance is lost accordingly. So pls try yourself by mouse drag. 

これをTensorflowで強化学習させるわけだ。The next step is to educate by reinforcement learning on Tensorflow. 

これから、目的関数をポールのAngleとして、環境変数はポールの位置、角度、入力はボールの位置として組み上げていく予定。どうなるだろうか。Plan is to use the angle of pole as an objective function, while input is ball position. Let's see what happens.