å¼·åå¦ç¿
æ©æ¢°å¦ç¿ã®ä¸ç¨®ã§ããå¼·åå¦ç¿ã«ã¤ãã¦åå¼·ãããã¨ãã¾ã¨ãããã¼ãï¼å¿åé²ï¼ã§ãã
å°ãããã§åãä¸ãã¦ããå種強åå¦ç¿ææ³ã®ä¸é¨ã®ææ³ã®å®è£
ã³ã¼ãã¯ã以ä¸ã®ã¬ãã¸ããªã«ä¿ç®¡ãã¦ããã¾ãã
ç®æ¬¡ [Contents]
- å¼·åå¦ç¿ã®ã¢ãã«å
- 代表çãªå¤å ¸çå¼·åå¦ç¿ææ³ã®æ¯è¼
- å¼·åå¦ç¿ã«ãããåçè¨ç»æ³ï¼DPæ³ï¼
- ã¢ã³ãã«ã«ãæ³ï¼MCæ³ï¼
- TDå¦ç¿ï¼æéçå·®åå¦ç¿ï¼
- TD(0)æ³
- Sarsaï¼æ¹çãªã³åTDå¶å¾¡ï¼
- Qå¦ç¿ [Q-learning]ï¼æ¹çãªãåTDå¶å¾¡ï¼
- nã¹ãããTDæ³
- TD(λ)æ³
- TD(λ)ã®åæ¹è¦³æ¸¬çãªè¦æ¹
- TD(λ)ã®å¾æ¹è¦³æ¸¬çãªè¦æ¹ã¨é©æ ¼åº¦ãã¬ã¼ã¹
- åæ¹è¦³æ¸¬çè¦æ¹ã¨å¾æ¹è¦³æ¸¬çè¦æ¹ã®ç価æ§
- Sarsa(λ)
- Q(λ)
- ã¢ã¯ã¿ã¼ã»ã¯ãªãã£ãã¯ææ³
- TDæ³ã®é©ç¨ä¾
- é¢æ°ã«ãã価å¤é¢æ°ã®è¿ä¼¼ï¼é¢æ°è¿ä¼¼ææ³ï¼
- æ失é¢æ°ã¨ãã¦ã®æå°ï¼ä¹èª¤å·®ï¼MSEï¼
- ãã©ã¡ã¼ã¿ã®æ´æ°å¼ã¨ãã¦ã®ææ¥éä¸æ³
- ç·å½¢é¢æ°ã§ã®ä¾¡å¤é¢æ°ã®è¿ä¼¼ï¼ç·å½¢ææ³ï¼
- ææ¥éä¸åSarsaï¼é¢æ°è¿ä¼¼ææ³ã®Sarsaã¸ã®é©ç¨ï¼
- ææ¥éä¸åQå¦ç¿ï¼é¢æ°è¿ä¼¼ææ³ã®Qå¦ç¿ã¸ã®é©ç¨ï¼
- æ¹çå¾é
ã«åºã¥ãå¼·åå¦ç¿ææ³
- REINFORCE
- æ¹çå¾é æ³
- æ¹çå¾é ã«åºã¥ãå¼·åå¦ç¿ææ³ã®é©ç¨ä¾
- ã¢ãã«ã¨ãã©ã³ãã³ã°ï¼å種å¤å
¸çå¼·åå¦ç¿ã®çµ±ä¸çè¦è§£ï¼
- Dyna,Dyna-Q
- 深層å¦ç¿ã®æ§é ãåãè¾¼ãã å¼·åå¦ç¿ææ³ï¼æ·±å±¤å¼·åå¦ç¿ææ³ï¼
- å¤å±¤ãã¼ã»ãããã³ï¼MLPï¼ã«ãã価å¤é¢æ°ã®è¿ä¼¼
- Neural Fitted Q Iterationï¼MLPã«ããé¢æ°è¿ä¼¼ã§å¦ç¿ãå®å®åãããããã®å·¥å¤«ï¼
- Deep Q Networkï¼DQNï¼
- Double-DQNï¼DDQNï¼
- Prioritized Experience Replayï¼åªå é ä½ä»ãçµé¨åçï¼
- Dueling Network
- GORILA [General Reinforcement Learning Architecture]
- A3C [Asynchronous Advantage Actor-Critic]
- A2C [Advantage Actor-Critic]
- UNREAL [UNsupervised REinforcement and Auxiliary Learning]
- TRPO [trust region policy optimization]
- PPO [proximal policy optimization]
- GAE [generalized advantage estimator]
- è£è¶³äºé
- åèãµã¤ãã¨åèæç®
â å¼·åå¦ç¿ã®ã¢ãã«å
â ã¨ã¼ã¸ã§ã³ãã¨ç°å¢ã®ç¸äºä½ç¨
ä¸å³ã¯ãå¼·åå¦ç¿ã§åãæ±ãã·ã¹ãã ãå³ç¤ºãããã®ã§ããã
ãã®ã·ã¹ãã ã¯ã以ä¸ã®ããã«ãã¨ã¼ã¸ã§ã³ãã¨ç°å¢ã¨ã®ç¸äºä½ç¨ã§ã¢ãã«åãããã
- ã¨ã¼ã¸ã§ã³ãã¨ã¯ãææ決å®ã¨å¦ç¿ï¼â»å°æ¥ã«æ¸¡ãåçã®æå¾
å¤ãæ大åãããããªå¦ç¿ï¼ãè¡ãè¡å主ä½ã§ããã
- ç°å¢ã¨ã¯ãã¨ã¼ã¸ã§ã³ããç¸äºä½ç¨ãè¡ã対象ã§ãããã¨ã¼ã¸ã§ã³ãã®è¡å a ãåæ ããä¸ã§ãã¨ã¼ã¸ã§ã³ãã«å¯¾ãã¦ãç¶æ
s ã¨ããã®ç¶æ
ã§ã®å ±é
¬ r ãä¸ããã
ã¨ã¼ã¸ã§ã³ãã®è¡å a ã¯ã確çåå¸ã§è¡¨ç¾ãããè¡åæ¹ç [policy] ã«åºã¥ãã¦é¸æãããã
ããã§ã ã¯ã ãªãã° ã¨ãªã確çã表ããã¨ã¼ã¸ã§ã³ãã¨ç°å¢ã¯ãç¶ç¶çã«ç¸äºä½ç¨ãè¡ãã
ãã詳細ã«ã¯ãé¢æ£æé t=0,1,2,... ã®åã ã®æé t ããã¦ãç¸äºä½ç¨ãè¡ãã- ã¨ã¼ã¸ã§ã³ãããã®ææ決å®ç®çã¨ããåçã¯ãæéçµé t=0,1,2,.. ã§ã®æéçµéã«ãã£ã¦ããã®å¤ãæ¸è¡°ãããã®ã¨ããã
ã¤ã¾ããæé t æç¹ããè¦ã¦ãå°æ¥ t+1,t+2,... ã«ããã£ã¦ã®å ±é ¬ r ã®å·®ãå¼ããèæ ®ããå²å¼åç
ã§èããã
â» å²å¼åçã§èããã®ã¯ãåãåçå¤ãªãã°ãå°æ¥åãåããããç¾æç¹ã§åãåãã»ããããå¤ã§ãããã¨ã®å¦¥å½æ§ãããããå¥ã®çç±ã¨ãã¦ãçµç«¯ç¶æ ã®åå¨ããªãé£ç¶ã¿ã¹ã¯ã«ããã¦ãå²å¼ãªãã®å ´åã®å°æ¥ã«ããã£ã¦ã®åçã®åããtââ ã®æéçµéã«ãããç¡é大ã«çºæ£ãã¦ãã¾ããã¨ã¼ã¸ã§ã³ãã®ç®çã§ããå°æ¥ã«ããã£ã¦ã®åçã®æ大åããæ°å¦çã«åãæ±ããããåé¡ã«ãªã£ã¦ãã¾ããã¨ãé²ãã¨ããçç±ãããã ããã¦ãã¨ã¼ã¸ã§ã³ãã¯ãæéçµé t=0,1,2,.. ã§ã®ç¸äºä½ç¨ã«ãã£ã¦ããã®å°æ¥ã«ããã£ã¦ã®å²å¼åç ã®æå¾ å¤ E[R] ãæ大åããããã«ãèªèº«ã®è¡åæ¹ç ãå¦ç¿ããªãããè¡åããã
â» ä¸è¬çã«ãå¼·åå¦ç¿ã®æ çµã¿ã«ããã¦ãæéã«ä¾åããè¡åæ¹ç ã§ã¯ãªããæé t ã«ãããªãå®å¸¸æ¹ç ãç¨ããããã
ï¼ä¾¡å¤é¢æ°ã®æºããã¹ãæ¹ç¨å¼ãä¸ãããã«ãã³ã®æ¹ç¨å¼ã¯ãå®å¸¸æ¹ç ãåæã¨ããæ¹ç¨å¼ã¨ãªã£ã¦ãããï¼ããã§ãã¨ã¼ã¸ã§ã³ãã¨ç°å¢ã®ç¸äºä½ç¨ã®é åºã¯ã以ä¸ã®ããã«ãªãã
â ã¨ã¼ã¸ã§ã³ãã¯ãç°å¢ããç¶æ ãåãåããï¼ï¼ã¨ã¼ã¸ã§ã³ãã®ç¶æ ãã«ãªããï¼
â¡ ã¨ã¼ã¸ã§ã³ãã¯ãç¾å¨ã®ç¶æ ã«åºã¥ããè¡åæ¹ç ã«å¾ã£ã¦ãè¡åãé¸æããã
⢠æéãï¼ã¹ããã tât+1 çµéå¾ã«ãã¨ã¼ã¸ã§ã³ãã¯ãã¨ã¼ã¸ã§ã³ãã®è¡åã®çµæã¨ãã¦ãå ±é ¬ ãååãã
â» æé t ã§ç°å¢ãåãåã£ãè¡åã«ããå³æå ±é ¬ã¨ããæå³ã§ãã§ã¯ãªã ãç¨ããã
â» ã¤ã¾ããç¶æ ã¯è¡åãé¸æããããã®å¤æææã¨ãªããå ±é ¬ã¯ãã®è¡åãè©ä¾¡ããããã®å¤æææã¨ãªããå°ãå¼·åå¦ç¿ã®æèã«ããã¦ãã¨ã¼ã¸ã§ã³ãã¨ç°å¢ã¨ã®ç¸äºä½ç¨ã®ä¸é£ã®æç³»ååä½ããã¨ãã½ã¼ã [Episode] ã¨ããã
ãã®ã¨ãã½ã¼ãã¯ãã¨ã¼ã¸ã§ã³ãã®åæç¶æ ããå§ã¾ã£ã¦ãç°å¢ã¨ã®ç¸äºä½ç¨ã«ããçµç«¯ç¶æ ã¾ã§ç§»è¡ããã¾ã§ã®ã®éç¨ããï¼åã®ã¨ãã½ã¼ãã¨ãã¦æ±ãã
ä¾ãã°ãè¿·è·¯æ¢ç´¢åé¡ã«ããã¦ã¯ãã¨ã¼ã¸ã§ã³ãããè¿·è·¯ã®ã¹ã¿ã¼ãå°ç¹ããã´ã¼ã«ã¾ã§è¾¿ãã¤ãã¾ã§ã®ä¸é£ã®éç¨ããï¼åã®ã¨ãã½ã¼ãã«ãªãã
å¼·åå¦ç¿ã«ããå¦ç¿ï¼ï¼è¡åæ¹çã®å¦ç¿ã価å¤é¢æ°ã®å¦ç¿ãªã©ï¼ã§ã¯ãï¼åã®ã¨ãã½ã¼ãå ã®åæéã¹ããã tât+1 度ã«å¦ç¿ãè¡ãææ³ï¼ä¾ãã°ã価å¤å復æ³ãªã©ã®åçè¨ç»æ³ãTDæ³ï¼ãããã°ãï¼åã®ã¨ãã½ã¼ããå®äºããæ¯ã«å¦ç¿ãè¡ãææ³ï¼ä¾ãã°ãã¢ã³ãã«ã«ãæ³ï¼ãåå¨ããã®ã§ãã¨ãã½ã¼ãã¨æéã¹ããããæ確ã«åºå¥ãã¦ããå¿ è¦ãããã
ãMemoããã¨ã¼ã¸ã§ã³ãã¨ç°å¢ã®å¢çç·ã¯ã©ã®ããã«è¨å®ãã¹ããï¼
ãã®ããã«ã¢ãã«åãããå¼·åå¦ç¿ã®ã·ã¹ãã ã«ããã¦ãå®éä¸ã®ã¿ã¹ã¯ã§ã¯ãã©ã®ããã«ã¨ã¼ã¸ã§ã³ãã¨ç°å¢ã¨ã®ç·å¼ãè¡ãã°ããã®ãï¼ã¨ããåé¡ã¯æ®ãã
ããã¯ä¾ãã°ãããããå¶å¾¡ã¿ã¹ã¯ã«ããã¦ã¯ããããããæ§æããã¢ã¼ã¿ã¼ãã»ã³ãµã¼ãªã©ã®ç©ççããã¤ã¹ã¯ããã®å é¨ã®é»ååè·¯ãªã©èªä½ã¯ãã¨ã¼ã¸ã§ã³ãã§ããããããèªèº«ããã¯ç´æ¥å¶å¾¡ã§ãããªãã®ã§ãã¨ã¼ã¸ã§ã³ãã®ä¸é¨ã¨ãããããããããç°å¢ã®ä¸é¨ã¨ã¿ãªããã»ããé©åã§ããã®ã§ã¯ï¼ã¨èããããã
åæ§ã®ä¾ã¨ãã¦ã人ä½å¶å¾¡ã¿ã¹ã¯ã«ããã¦ã¯ã人ä½ãæ§æããçèãéª¨æ ¼ãæè¦å¨ãªã©ã¯ãã¨ã¼ã¸ã§ã³ãã®ä¸é¨ã¨ãããããããããç°å¢ã®ä¸é¨ã¨ã¿ãªããã»ããé©åã§ããã®ã§ã¯ï¼ã¨èããããã
ãã®åé¡ã®ä¸è¬çãªåºæºãä¸ããåçã¨ãã¦ã¯ãã¨ã¼ã¸ã§ã³ããä»»æã«å¤æ´åºæ¥ãªããã®ã¯ãã¨ã¼ã¸ã§ã³ãã®å¤é¨ã«ããã¨èããããããç°å¢ã¨ã¿ãªãã¨ãã解決çãèããããã
ãã®ã¨ã¼ã¸ã§ã³ãã¨ç°å¢ã®ç¸äºä½ç¨ããæéãç¸äºä½ç¨ã®é åºãå«ã¾ã¦èããå ´åã«ããã¦ã¯ã以ä¸ã®ãããªããã¯ã¢ããç·å³ã§è¡¨ç¾ããã»ããããããããã
ä¾ãã°ã以ä¸ã®å³ã¯ããã¹ç®ä¸ã«ä»åãããè¿·è·¯æ¢ç´¢åé¡ï¼ç§»åæ¹åãä¸ä¸å·¦å³ã®ï¼æ¹åï¼ã«ããããããã¯ã¢ããç·å³ã§ããã
ä½ãããã®åé¡ã§ã¯ãç¶æ
é·ç§»é¢æ° ã確çï¼ã§æ±ºå®è«çã«å®ã¾ãããã«ãç¶æ
é·ç§»é¢æ°ã«ããåå²ãåå¨ããªããã¨ã«æ³¨æï¼éç·é¨åï¼ã
ããä¸è¬çã«ã¯ã以ä¸ã®ããã¯ã¢ããç·å³ã®ããã«ãç¶æ
é·ç§»é¢æ° ã«ããåå²ãåå¨ããã
å°ãããã¯ã¢ããç·å³ãç¨ãã¦ã®è©³ç´°ãªè°è«ã¯ãå¾è¿°ã®ä¾¡å¤é¢æ°ï½ãã«ãã³ã®æ¹ç¨å¼ã§è°è«ããã
â» ããã¯ã¢ããç·å³ã¨ããååã¯ã価å¤é¢æ°ã®æºããã¹ãæ¹ç¨å¼ãè¨è¿°ãããã«ãã³ã®æ¹ç¨å¼ããååã¨ä»åã®ä¾¡å¤é¢æ°ã®å¤ã®å帰çé¢ä¿ï¼ï¼ããã¯ã¢ããï¼ã§è¨è¿°ãããããã§ããã
â ç°å¢ã®ãã«ã³ãæ§
å¼·åå¦ç¿ã§çããã¨ã¼ã¸ã§ã³ãã¨ç°å¢ã¨ã®ç¸äºä½ç¨ã®éç¨ï¼ï¼ç¢ºçéç¨ã¨ãªãï¼ã«ããã¦ãæé t ã§ç¶æ
ã«ããã¨ã¼ã¸ã§ã³ãã«ãã£ã¦é¸æãããè¡åã«å¯¾ãã¦ã次ã®æé t+1 ã«ããã¦ç°å¢ãã©ã®ããã«å¿çããã®ãã¨ããåé¡ãèããã
ãã®åé¡ã®æãä¸è¬çãªã¢ãã«åã§ã¯ã以åã«çããå
¨ã¦ã®äºè±¡ ã«ä¾åããæ¡ä»¶ä»ãåæ確çåå¸ã§ã¢ãã«åããã
å³ã¡ã
ããããªãããæãä¸è¬çãªã¢ãã«ã§ã¯ãéå»ã®å
¨ã¦ã®äºè±¡ã«ä¾åããããã«ãåé¡è¨å®ãè¨ç®ãè¤éã«ãªãã¨ããåé¡ãåå¨ãããå¾ã£ã¦ãå¼·åå¦ç¿ã®ã¢ãã«åã«ããã¦ã¯ãä¸è¬çã«ãç°å¢ã«å¯¾ãã¦ãã«ã³ãæ§ã®æ§è³ªãä»®å®ããã
ããã§ããã®ãã«ã³ãæ§ã¨ã¯ããããç¶æ
ãããå¥ã®ç¶æ
ã«ç§»è¡ãã確çãããã以åã®çµè·¯ t ã«ããããç¾å¨ã®ç¶æ
ã®ã¿ã§æ±ºã¾ãããã¨ããæ§è³ªã§ããã
ä»ã®å ´åãç°å¢ã«å¯¾ãã¦ãã«ã³ãæ§ã®æ§è³ªãä»®å®ããã®ã§ãï¼ç°å¢ãã¨ã¼ã¸ã§ã³ãã«ä¸ããï¼ç¶æ
s ã¨å ±é
¬ r ã対象ã¨ãªããå¼ã§æ¸ãã¨ã
ã§ããã
ãã®ããã«ç°å¢ããã«ã³ãæ§ã®æ§è³ªãæºããã¨ããç¾å¨ã®ç¶æ
ã¨è¡åããä¸ãããã¦ã°ãï¼ã¹ããã tât+1 éã§ã®ç°å¢ã«ããé·ç§»ç¢ºç ããã次ã®ã¹ããã t+1 ã§ã®ç¶æ
ã¨è¡å ãäºæ¸¬ãããã¨ãåºæ¥ãã®ã§ããããã®å復å¦çãé次繰ãè¿ããã¨ã«ãããéå»ã®å
¨ã¦ã®å±¥æ´ãä¸ããããå ´åã¨åæ§ã«ãã¦ãå°æ¥ã«ãããç¶æ
ã¨è¡åãäºæ¸¬ã§ããæ§é ãç¹ãè¾¼ã¾ãã¦ãããã¨ã«ãªããï¼ããæ
ã«ããã«ã³ãæ§ã®æ¡ä»¶ãéè¦ã§ãããï¼
å¼ã§æ¸ãã¨ã
ã§ããã
â ãã«ã³ã決å®éç¨ï¼MDPï¼
å
ã«è¦ãããã«ãå¼·åå¦ç¿ã¯ãã¨ã¼ã¸ã§ã³ãç°å¢ãåæéã¹ããã t=0,1,2,... ã§ç¶ç¶çã«ç¸äºä½ç¨ããã·ã¹ãã ã«ããã¦ãã¨ã¼ã¸ã§ã³ããç®æ¨ã示ãæ°å¤ã§ããå²å¼åçãæ大åããããã«è¡åæ¹çãå¦ç¿å¶å¾¡ãããããªéç¨ ã§ãã£ã¦ãæ´ã«ãç°å¢ã«å¯¾ãã¦ãã«ã³ãæ§ã®æ§è³ªãä»®å®ãã¦ã¢ãã«åãããã
ãã®ãããªã¢ãã«ã¯ããã«ã³ã決å®éç¨ [MDP:Markov decision process] ã®æ çµã¿ã§å³å¯ã«ã¢ãã«ååºæ¥ãã
ãã®ãã«ã³ã決å®éç¨ã¯ããã«ã³ãæ§ã¨ã¨ã«ã´ã¼ãæ§ãæã¤ç¢ºçéç¨ã§ãã£ã¦ãé¸æå¯è½ãªè¡åãåã³ãå ±é
¬ã追å ãããã®ã§ããã
è¨ãæããã¨ããã«ã³ã決å®éç¨ã¯ããã«ã³ãé£éã«å¯¾ãã¦ãé¸æå¯è½ãªè¡åãåã³ãå ±é
¬ã追å ãããã®ã§ããã
- ã¨ã«ã´ã¼ãæ§ï¼å®å¸¸æ§ï¼ï¼
ä»»æã®åæç¶æ ããã¹ã¿ã¼ããã確çéç¨ããç¡éæéçµéå¾ã«ã¯ãæåã®ç¶æ ã¨ã¯ç¡é¢ä¿ã«ãªãæ§è³ªã
ãã«ã³ãé£éã¯ããã®ã¨ã«ã´ã¼ãæ§ã®æ§è³ªãåããæã¤ã
ãã®ãã«ã³ã決å®éç¨ã«ããéç¨ã¯ã以ä¸ã®é·ç§»ã°ã©ãã§å³ç¤ºããã¨ããããããã
ä½ãããã®é·ç§»ã°ã©ãã§ã¯ãè¡åæ¹çã«ããè¡åã®é¸æã®åå²ã¯è¡¨ç¾ã§ãã¦ããªããã¨ã¨ãæéã¹ããã t ã«å¯¾ãã ã®ãã¤ããã¯ã¹ ã¯è¡¨ç¾ãã¦ããªããã¨æ³¨æãï¼æ·»åã®ä½ç½®ã«æ³¨æï¼
æéã¹ãããã«ãããã¤ããã¯ã¹ãè¡åæ¹çã«ããè¡åã®é¸æã®åå²ã¨ãé·ç§»ç¢ºçã«ããç¶æ
ã®é·ç§»ã®åå²ãå«ãã¦è¡¨ç¾ããã«ã¯ã以ä¸ã®ããã¯ã¢ããç·å³ã§å³ç¤ºããã¨ããããããã
- ãåèãµã¤ãã
â 価å¤é¢æ°
å
ã«è¿°ã¹ãããã«ãå¼·åå¦ç¿ããã«ã³ã決å®éç¨ã§ã¢ãã«åããã«ããã£ã¦ãã¨ã¼ã¸ã§ã³ãã®ç®çã¯ãèªèº«ã®è¡åå Ï ã«ããç®çé¢æ°ã§ããå°æ¥ã«æ¸¡ã£ã¦ã®å²å¼åçï¼åçã®ç·åï¼
ã®æå¾
å¤ãæ大åãããã¨ã§ãã£ãããä¸è¬çã«ãå¼·åå¦ç¿ã®ã¢ãã«åã«ããã¦ã¯ããã®è¡åæ¹çã¨ãã¦ãç¹ã«å®å¸¸æ¹çã®å ´åãèãããã®å®å¸¸æ¹çã«å¾ã£ãå ´åã«å¾ãããåçã®æå¾
å¤ã§ãã価å¤é¢æ°ã®æ¦å¿µãå°å
¥ããã
ããã§ã価å¤é¢æ°ã«ã¯ã以ä¸ã®ããã«ãç¶æ
s ã«ããã価å¤ã表ãç¶æ
価å¤é¢æ°ã¨ãç¶æ
s ã§è¡å a ãé¸æããå ´åã®ä¾¡å¤ã表ãè¡å価å¤é¢æ°ãåå¨ããã
ç¶æ 価å¤é¢æ°ï¼
ç¶æ s ã§ç¾å¨ã®è¡åæ¹ç ã«å¾ãã¤ã¥ããï¼ï¼å®å¸¸æ¹çï¼ã¨ãã«å¾ããã価å¤ãè¡å価å¤é¢æ°ï¼
ç¶æ s ã§è¡å a ãé¸æãããã®å¾ã¯æ¢åã®è¡åæ¹ç ã«å¾ãã¤ã¥ããï¼ï¼å®å¸¸æ¹çï¼ã¨ãã«å¾ããã価å¤ã
- ãåç
§ãµã¤ãã
â ç¶æ 価å¤é¢æ°
以ä¸ã®å³ã¯ãããã¯ã¢ããç·å³ã«ç¶æ
価å¤é¢æ° ãè¨ããå³ã§ããã
ãã®ããã¯ã¢ããå³ãããç¶æ
価å¤é¢æ°ã®å®ç¾©ã«ããå°æ¥ã«å¯¾ããå²å¼åçã®æå¾
å¤ ã¯ãéæ å
ã§ã®ï¼å°æ¥ã«ãããï¼å ±é
¬ r ã®å¹³åãã¨ã£ããã®ã«ãªã£ã¦ãããã¨ãåããã
æ´ã«ããã®å°æ¥ã®å²å¼ç·åã«é¢ãã¦ã®æå¾
å¤ã¯ãä¸å³ããåããããã«ãè¡åæ¹çã§ã®åå²ï¼èµ¤ç·ï¼ã®åã®é¨å ã¨é·ç§»é¢æ°ã§ã®åå²ï¼éç·ï¼ã®åã®é¨å ã§åã
å¹³åå¤ãã¨ã£ããã®ã«å¯¾å¿ãã¦ããã®ã§ã以ä¸ã®é¢ä¿ãæãç«ã¤ãã¨ãåããã
å°ããã®é¢ä¿å¼ãä¸å³ã®ããã¯ã¢ããç·å³ããç´æçã«ã§ã¯ãªããå¼å¤å½¢ã§ç¤ºãã¨ä»¥ä¸ã®ããã«ãªãã
ããã§ããã®é¢ä¿å¼ã¯ãç¶æ
価å¤é¢æ°ã«é¢ãã¦ã®æ¹ç¨å¼ã«ãªã£ã¦ãããï¼ç¶æ
価å¤é¢æ°ã«å¯¾ãã¦ã®ï¼ãã«ãã³ã®æ¹ç¨å¼ã¨ããã
ããã¦ããã®ãã«ãã³ã®æ¹ç¨å¼ã¯ä¸åç¹æ¹ç¨å¼ã§ããã®ã§ããã®æ¹ç¨å¼ã解ãã°ãåççã«ã¯ä¸åç¹ã¨ãã¦ã®ç¶æ
価å¤é¢æ°ã®æé©è§£ãä¸æã«åå¨ãããã¨ã«ãªãï¼è©³ç´°ã¯å¾è¿°ï¼
â è¡å価å¤é¢æ°
以ä¸ã®å³ã¯ãããã¯ã¢ããç·å³ã«ç¶æ
価å¤é¢æ° ãè¨ããå³ã§ããã
ãã®ããã¯ã¢ããç·å³ãããç¶æ
è¡åé¢æ°ã®å®ç¾©ã«ããå²å¼åçã®æå¾
å¤ ã¯ãéæ å
ã§ã®å ±é
¬ r ã®å¹³åãã¨ã£ããã®ã«ãªã£ã¦ãããã¨ãåããã
â ç¶æ 価å¤é¢æ°ã¨è¡å価å¤é¢æ°ã®é¢ä¿
価å¤é¢æ°ã«ã¯ãç¶æ
価å¤é¢æ°ã¨è¡å価å¤é¢æ°ã®ï¼ã¤ãåå¨ãããããããï¼ã¤ã®é¢æ°ã¯ãäºãã«çµã³ã¤ãã
ãã®ãã¨ãããã¯ã¢ããç·å³ãå
ã«è¦ã¦ããã
以ä¸ã®å³ã¯ãããã¯ã¢ããç·å³ã«ç¶æ
価å¤é¢æ° ã¨è¡å価å¤é¢æ° ã¨ãè¨ããå³ã§ããã
ãã®ããã¯ã¢ããç·å³ããã以ä¸ã®ãããªé¢ä¿ãæãç«ã¤ãã¨ãåããã
â å°æ¥ã®æå¾
å©å¾ã§ããç¶æ
価å¤é¢æ° ã¯ãï¼ç¾å¨ã®æå¾
å©å¾ã§ããï¼è¡å価å¤é¢æ° ã«å¯¾ãã¦ãè¡åæ¹çã«é¢ãã¦ã®åå²ï¼èµ¤æ é¨åï¼ã§åãã¨ã£ãå½¢ã§è¡¨ç¾ã§ããã
以ä¸ã®é¢ä¿å¼ãã¾ã¨ããã¨ã以ä¸ã®ããã«ãªãã
- ï¼è¨¼æç¥ï¼ããã¯ã¢ããç·å³ããæãç«ã¤ãã¨ãåããã
â ãã«ãã³æ¹ç¨å¼
次ã®åé¡ã¯ããããæé©ä¾¡å¤é¢æ° , ãå¦ä½ã«ãã¦æ±ãããã¨ãããã¨ã§ããã
æé©ä¾¡å¤é¢æ° , ã¯ã以ä¸ã®ãã«ãã³æ¹ç¨å¼ã¨å¼ã°ãããæé©è§£ã«é¢ãã¦ã®ä¸åç¹æ¹ç¨å¼ããæ±ãããã¨ãåççã«ã¯å¯è½ã¨ãªãã
â» âåççã«ã¯å¯è½â ã¨è¡¨ç¾ããã®ã¯ããã«ãã³æ¹ç¨å¼ãæé©ä¾¡å¤é¢æ°ã«é¢ãã¦ã®ä¸åç¹æ¹ç¨å¼ã¨ãªã£ã¦ãããåæå
ã®ä¸åç¹ã¨ãã¦ã®æé©è§£ãæã¤ãã¨ãä¿è¨¼ãããããå®éä¸ãã®æ¹ç¨å¼ãç´æ¥è§£ããã¨ã¯å°é£ã§ããã代ããã«åçè¨ç»æ³ï¼ä¾¡å¤å復ãæ¹çå復ãªã©ï¼ã®ææ³ã§è¿ä¼¼è§£ãå¾ãããã«ãããã¨ãå¤ãããã
ã¾ãã¯ãæé©ä¾¡å¤é¢æ°ã®ãã¡ãæé©ç¶æ
価å¤é¢æ° ã«å¯¾ãã¦ã®ãã«ãã³æ¹ç¨å¼ãèããã
- ï¼è¨¼æç¥ï¼å
ã®ãç¶æ
価å¤é¢æ°ãã®é
ç®ãåç
§
- ï¼è¨¼æç¥ï¼å
ã®ãç¶æ
価å¤é¢æ°ãã®é
ç®ãåç
§
åæ§ã«ãã¦ãæé©è¡å価å¤é¢æ° ã«å¯¾ãã¦ããã«ãã³æ¹ç¨å¼ãæãç«ã¡ããã®ä¸åç¹æ¹ç¨å¼ã®åæ解ï¼ï¼ä¸åç¹ï¼ã¨ãã¦ã®æé©è¡å価å¤é¢æ°ã®å¤ã®åå¨æ§ãä¿è¨¼ãããã
- ï¼è¨¼æç¥ï¼å
ã®ãç¶æ
価å¤é¢æ°ã¨è¡å価å¤é¢æ°ã®é¢ä¿ãã®é
ç®ãåç
§
â ãã«ãã³æé©æ¹ç¨å¼ã¨ã°ãªã¼ãã£ã¼ãªé¸æ
ä¸è¬çã«ãã³ã³ãã¥ã¼ã¿ã¼ãµã¤ã¨ã³ã¹ã®åéã«ãããã°ãªã¼ãã£ã¼ã®æå³ã¨ã¯ããé·æçã»å¤§åçã«ã¯ãããè¯ã代æ¿æ¡ã»æé©è§£ãè¦ã¤ããå¯è½æ§ãèæ
®ããã«ãçæçã»å±æçãªæ
å ±ã®ä¸ã§ã®ã¿ã代æ¿æ¡ã»æé©è§£ãè¦ã¤ãããããªæ¤ç´¢æ¹éã»ææ決å®æç¶ããã®ãã®ã¨ãæãã
ä»èãã¦ãããæé©ä¾¡å¤é¢æ° ã¯ããã«ãã³æé©æ¹ç¨å¼
ã®è§£ã¨ãã¦ä¸ããããããã®ï¼ã¤ã®æ¹ç¨å¼ã¯ããããããï¼ã¹ãããé ã§ã®çæçãªã°ãªã¼ãã£ã¼ãªé¸æ ãåãããããã°ãï¼ã¨ãã¼ã½ã¼ãéã®é·æçãªæå³ã§ãæé©è§£ã«å°éã§ãããã¨ãæå³ãã¦ããã
è¨ãæãã°ãï¼ã¹ãããéã§ã®ãã®æç¹ã§ã®çæçã§å±æçãªã°ãªã¼ãã£ã¼ãªé¸æããç¶ãã¦ããã°ãã¨ãã¼ã½ã¼ãéã§ã®å¤§åçæé©è§£ãå¾ããããã¨ãæå³ãã¦ããã
ããã¯ã価å¤é¢æ°ã¯ãâå°æ¥âã«å¯¾ãã¦å ±é
¬ã®æå¾
å¤ã¨ãã¦å®ç¾©ãã¦ããããã«ãå°æ¥ã®å
¨ã¦ã®å¯è½ãªæåãããããå ±é
¬ããæ¢ã«èæ
®ããã¦ãããã¨ã«èµ·å ããã
â 代表çãªå¤å ¸çå¼·åå¦ç¿ææ³ã®æ¯è¼
ããã§ã¯ã代表çãªå¤å
¸çå¼·åå¦ç¿ã¢ã«ã´ãªãºã ã§ããã
- åçè¨ç»æ³ï¼ä¾¡å¤å復æ³ãæ¹çå復æ³ãªã©ï¼
- ã¢ã³ãã«ã«ãæ³
- TDå¦ç¿ï¼SarsaãQå¦ç¿ãªã©ï¼
- é¢æ°è¿ä¼¼ææ³
ãªã©ã®å種å¤å
¸çå¼·åå¦ç¿ææ³ããçµ±ä¸ç観ç¹ãããäºãã®ç¹å¾´ãæ¯è¼ããã
以ä¸ã®è¡¨ã¯ãå種å¤å
¸çå¼·åå¦ç¿ææ³ï¼æ¨ªè»¸ï¼ããããã¤ãã®ä»£è¡¨çãªç¹å¾´è»¸ï¼ç¸¦è»¸ï¼ã§æ¯è¼ãã表ã§ããã
â å¼·åå¦ç¿ã«ãããåçè¨ç»æ³ï¼DPæ³ï¼
å
ã®ãã«ãã³ã®æ¹ç¨å¼
ã示ãéè¦ãªæ§è³ªã¯ããããç¶æ
ãè¡åã®ä¾¡å¤ , ã¯ããã®å¾ã®ç¶æ
ãè¡åã®ä¾¡å¤ , ãç¨ãã¦è¡¨ããã¨ãåºæ¥ãããã¨ããããã¼ãã¹ãã©ããæ§ã®æ§è³ªã§ããã
ï¼â»æ©æ¢°å¦ç¿ã§ç¨ããããã¼ã¿åå²ææ³ã®ï¼ã¤ã§ãããã¼ãã¹ãã©ããæ³ã¨ç°ãªããã®ã§ãããã¨ã«æ³¨æï¼
ãã®ãããªä¾¡å¤é¢æ°ã®ãã¼ãã¹ãã©ããæ§ãå©ç¨ãã¦ã価å¤é¢æ°ãå復çã«æåããããã©ããªããé次è¨ç®ãã¦ããææ³ãç·ç§°ãã¦ãåçè¨ç»æ³ã¨ããã
ããã¦ããã®ãã¼ã¹ãã©ããæ§ã®æ§è³ªãããã¯ã¢ããç·å³ã§æ¸ãããã®ãã以ä¸ã®ãããªåçè¨ç»æ³ã®ããã¯ã¢ããç·å³ã«ãªãã
â» ãã®åçè¨ç»æ³ã§è¨ç®å¯è½ã«ãªãããã«ã¯ããã«ãã³ã®æ¹ç¨å¼ã«åºã¦ããç¶æ
é·ç§»é¢æ° ãæ¢ç¥ã§ãããã¨ãæ¡ä»¶ã«ãªããè¨ãæããã¨ãåçè¨ç»æ³ã«ããå¼·åå¦ç¿ææ³ã¯ãç°å¢ã®ã¢ãã«ãå
±ã«ããææ³ã§ãã¢ãã«ãã¼ã¹ã®å¼·åå¦ç¿ææ³ã§ããã
â» ããã«å¯¾ãã¦ãç°å¢ã®ãã¤ããã¯ã¹ãæ¢ç¥ã§ãªãã¨ãæå¹ãªä¾¡å¤é¢æ°ã®è¨ç®ææ³ã¨ãã¦ãã¢ã³ãã«ã«ãæ³ãTDæ³ãªã©ã®ãã¢ãã«ããªã¼ã®å¼·åå¦ç¿ææ³ããããï¼è©³ç´°ã¯ãå¾è¿°ï¼
ããã§ããã®ãã«ãã³ã®æ¹ç¨å¼ã¯ã価å¤é¢æ°ã«å¯¾ãã¦ã®ä¸åç¹æ¹ç¨å¼ã«ããªã£ã¦ããããã®ä¸åç¹æ¹ç¨å¼ãå°ãä¸åç¹ã¨ãã¦ã®æé©ä¾¡å¤é¢æ°ã®åå¨ã®ä¸ææ§ã¯ã価å¤åå¾©æ³ [value iteration] ãæ¹çåå¾©æ³ [policy iteration] ãªã©ã®åçè¨ç»æ³ã®ã¢ã«ã´ãªãºã ã§ãæé©è§£ãå¾ããããã¨ã®æ ¹æ ã¨ãªãã
â å復æ³ã«ããè¿ä¼¼è§£
æ¹çè©ä¾¡ãããï¼ï¼ãã«ãã³æ¹ç¨å¼ã解ãï¼ã«ããã£ã¦ã¯ãå³å¯ãªè§£æ³ã§ã¯ããã«ãã³æ¹ç¨å¼ããç¶æ
éå S åã®æªç¥å¤æ° sâS ãæã¤ãS åã®é£ç«ä¸æ¬¡æ¹ç¨å¼ã¨ã¿ãªããããã解ããã¨ã«ãªããããã®å³å¯ãªè§£æ³ã§ã¯ãä¸è¬çã«è¨ç®éãè¨å¤§ã¨ãªããç¾å®çã§ãªãã
ããã§ãå復æ³ã«ããè¿ä¼¼è§£ãç¨ããã
å復æ³ã¯ããã«ãã³ã®æ¹ç¨å¼ãæºãã価å¤é¢æ°ãåã³ãã®ã¨ãã®æé©è¡åæ¹çãããã«ãã³ã®æ¹ç¨å¼ã®å¼ã«ãã®ã¾ã¾ã«å¾ã£ã¦å帰çã«ç·å½ããè¨ç®ããã®ã§ã¯ãªããä»ã®ç¶æ
ã¨æ¬¡ã®ç¶æ
ã®ï¼å±¤éã®ã¿ã®ç¹°ãè¿ãè¨ç®ã«ããè¿ä¼¼çã«æ±ããåçè¨ç»æ³ã®ä¸ç¨®ã§ããã
ãã詳細ã«ã¯ã
- ä»ã®ç¶æ
s ã¨æ¬¡ã®ç¶æ
s' ã®ï¼å±¤éã®ã¿ã§ã®è¨ç®ããk=0,1,2,... ã§æ´æ°ããªããå復ããã
- æé©è§£ã«è¿ã¥ãã¾ã§ããã®æ´æ°å¦ç k=0,1,2,... ãç¶ããã
- å¾ãããæé©è§£ã®è¿ä¼¼ãããæé©è¡åæ¹éãç®åºããã
ã¨ããã®ãåºæ¬çãªã¢ã¤ãã¢ã§ããã
å復æ³ã«ã¯ããããã価å¤å復æ³ã¨æ¹çå復æ³ãåå¨ãããã両è
ã®éãã¯ãè¡åé¸æã«ããã以ä¸ã®ãããªæ¹åæ§ã«éãã¨ãªãã
Policyãã¼ã¹ï¼
è¡åæ¹ç Ï ã«ãããè¡åé¸æãè¡ãããã
æ¹çå復æ³ã¯ããã®Policy ãã¼ã¹ãªå復æ³ã«ãªã£ã¦ãããValue ãã¼ã¹ï¼
価å¤é¢æ°ãæ大åãããããªè¡åé¸æãè¡ãã
ï¼ï¼ï¼ï¼
価å¤å復æ³ã¯ããã®Valueãã¼ã¹ãªå復æ³ã¨ãªã£ã¦ããã
- ãåèãµã¤ãã
â æ¹çè©ä¾¡
ç¶æ
価å¤é¢æ° ã¯ãç¶æ
s ã«ããã¦ãå®å¸¸æ¹ç ã«å¾ãã¤ã¥ããéã®ä¾¡å¤ã表ãã¦ããã
å¾ã£ã¦ãä»»æã®å®å¸¸æ¹ç ã«å¯¾ãããç¶æ
価å¤é¢æ° ãæ±ãããã¨ã¯ãããå®å¸¸æ¹çã®è©ä¾¡ææ°ã¨ãªããã価å¤ãæ±ãã¦ãæ¹çãè©ä¾¡ãã¦ãããã¨ã«ãªãã®ã§ãï¼åçè¨ç»æ³ã®æèã§ã¯ï¼âæ¹çè©ä¾¡â ã¨ããã
ç¶æ
価å¤é¢æ°ã«ã¤ãã¦ã®ãã«ãã³æ¹ç¨å¼
ã¯ãããè¡åæ¹ç Ï ã®ãã¨ã§ã®ãç¶æ
価å¤é¢æ°ã解ã¨ãã¦ããã®ã§ããã«ãã³æ¹ç¨å¼ã解ããã¨ã¯ãæ¹çè©ä¾¡ã¨ãªãã
â å復æ¹çè©ä¾¡
ä¸å³ã®ããã«ãç¶æ
価å¤é¢æ°ã«å¯¾ãã¦ã®ãã«ãã³æ¹ç¨å¼ããæ´æ°è¦åã¨ããæ´æ°å¼
ããçæãããè¿ä¼¼å ãèããã
ããã¨ããã®è¿ä¼¼å ã¯ãk â âã®æ¥µéã§ã ã«åæãããã¨ãç¥ããã¦ããï¼è¨¼æç¥ï¼ã
ãã®ã¢ã«ã´ãªãºã ã¯ããã«ãã³æ¹ç¨å¼ãç¹°ãè¿ã解ããã¨ãå³ã¡ãæ¹çè©ä¾¡ãç¹°ãè¿ãè¡ãã価å¤é¢æ°ãè¿ä¼¼ãã¦ããã®ã§ãå復æ¹çè©ä¾¡ã¨ããã
ããã§ããã®å復æ¹çè©ä¾¡ã®ã¢ã«ã´ãªãºã ã«ã¯ã以ä¸ã®ãããªç¹å¾´ãåå¨ããã
- ã¹ã¤ã¼ãæä½ã¨å®å
¨ããã¯ã¢ãã
ä¸è¬çã«ãç¾å¨è©ä¾¡ãã¦ããè¡åæ¹ç Ï ã®å ã§ãå®ç¾å¯è½ãªå ¨ã¦ã®ï¼ã¹ãããé·ç§»ï¼ï¼æéã¹ããã tât+1 ã§ã®é·ç§»ï¼ã«å¯¾ãã¦ãããã¯ã¢ããå¦çï¼ï¼æéã¹ãããã§ã®é·ç§»å¾ããé·ç§»åã®éæ¹åã¸ã®æ´æ°å¦çï¼ãè¡ããã¨ãå®å ¨ããã¯ã¢ããã¨ããã
ä»ã®å復æ¹çè©ä¾¡ã§ã¯ãå ¨ã¦ã®å¯è½ãªç¶æ ã sweep æä½ããªãããï¼ã¹ãããé·ç§» æ¯ã«ãï¼åº¦ãã¤ããã¯ã¢ããå¦çï¼ ï¼ãè¡ã£ã¦ããã®ã§ãå®å ¨ããã¯ã¢ããå¦çãè¡ã£ã¦ãããã¨ã«ãªããï¼ä¸å³ã®è¿·è·¯æ¢ç´¢åé¡ã®ä¾ãåç §ï¼
cf : ãµã³ãã«ããã¯ã¢ãã
- ãã®å ´æ´æ°åã®ã³ã¼ãå®è£
å復æ¹çè©ä¾¡ã§åãæ±ãã¤ã³ããã¯ã¹ k ã«å¯¾ããæ´æ°å¼ï¼ï¼é次è¿ä¼¼å¼ï¼
ãã³ã¼ãå®è£ ããéã«ã
åç´ã«èããã¨ãæ°ãã価å¤é¢æ°ã®é å ã¨å ã®é å ã®ï¼ã¤ã®é åã確ä¿ããããããé次æ´æ°ãã¦ããå®è£ ãèãããããã
å¥ã®å®è£ æ¹æ³ã¨ãã¦ã価å¤é¢æ°ã®é åãï¼ã¤ã ã確ä¿ãããã®æç¹ k ã§ã®æ°ãã価å¤é¢æ° ããå¤ã価å¤é¢æ° ã«ç´æ¥ä¸æ¸ãããå®è£ æ¹æ³ãèããããã
å¾è ã®æ¹æ³ã§ã¯ãæ°ãããã¼ã¿ãããã«å©ç¨ããã®ã§ãï¼ã¤ã®é åãç¨ããæ¹æ³ããããé常ã¯éãåæããã¨ããã¡ãªãããåå¨ããã
以ä¸ã®äºé
ãã¢ã«ã´ãªãºã ã¨ãã¦ã¾ã¨ããã¨ã以ä¸ã®ããã«ãªãã
â æ¹çæ¹å
å¾æ¥ã®è¡åæ¹çãããå¥ã®æ°ããè¡åæ¹çã«å¤æ´ãããã¨ã§ãå¾ããã価å¤ãããè¯ããªãã®ããï¼ã¨ããæ¹çæ¹åã®åé¡ãèããã
ãã®æ¹çæ¹åã¯ã
â ç¶æ
s ã«ããã¦ãå¾æ¥ã®è¡åæ¹ç Ï ã«å¾ãã¤ã¥ããéã®ä¾¡å¤ã§ããç¶æ
価å¤é¢æ° ã¨ã
â¡ ç¶æ
s ãããæ°ããè¡åæ¹ç Ï' ã«å¾ã£ã¦ãä¸åº¦ã ãè¡å a ãé¸æãã¦ããã®å¾ã¯å¾æ¥è¡åæ¹ç Ï ã«å¾ãã¤ã¥ããéã®ä¾¡å¤ã§ããè¡å価å¤é¢æ°
ã¨ããï¼ã¤ã®å¤ã¨ã®å¤§å°æ¯è¼
ãããè¨éçã«åãæ±ããã¨ãåºæ¥ãã
- ãåèãµã¤ãã
â æ¹çæ¹åå®ç
ãã®ãã¨ãä¸è¬çã«è¿°ã¹ããã®ãã以ä¸ã®æ¹çæ¹åå®çã¨å¼ã°ãããã®ã«ãªãã
- ï¼è¨¼æï¼
ç¶æ 価å¤é¢æ°ã¨è¡å価å¤é¢æ°ã®é¢ä¿ããã
ã®é¢ä¿ãæãç«ã¤ã®ã§ã以ä¸ã®ãããªæéã¹ããã t ã«é¢ãã¦ã®æ¼¸åå¼ãæãç«ã¤ã
å¾ã£ã¦ã ã®é¢ä¿ãæãç«ã¤ã®ã§ãå®çãæãç«ã¤ãã¨ãåããã
â æ¹çæ¹åå®çã¨ã°ãªã¼ãã£ã¼æ¹ç
ããã§ã以ä¸ã®ããã«å®ç¾©ãããæ°ããè¡åæ¹çã¨ãã¦ã®ã°ãªã¼ãã£ã¼æ¹ç
ã¯ãæ¹çæ¹åå®çã«ããæ°ããªæ¹ç Ïâ² ã®æ¡ä»¶ ãæºãããæ¹çæ¹åã«ãªã£ã¦ãããï¼è¨¼æç¥ï¼
ã¤ã¾ããï¼ã¹ãããé tât+1 ã§ãã°ãªã¼ãã£ã¼æ¹çã§è¡åãé¸æãããã¨ã§ãæ¹çãæ¹åããã¦ãããã¨ãä¿è¨¼ãããã
â æ¹çæ¹åã®ã¢ã«ã´ãªãºã
ãã®ã°ãªã¼ãã£ã¼æ¹çã«ããæ¹çæ¹åãã¢ã«ã´ãªãºã ã¨ãã¦ã¾ã¨ããã¨ã以ä¸ã®ããã«ãªãã
â æ¹çåå¾©æ³ [policy iteration]
å
ã«ã¿ãæ¹çè©ä¾¡ã¨æ¹çæ¹åã®ããã»ã¹ãç¹°ãè¿ããã¨ã§ãæ¹çã¨ä¾¡å¤ä¾¡å¤é¢æ°ã次ã
ã¨æ´æ°ããæçµçã«ã¯ãæé©è¡åæ¹çã¨æé©ä¾¡å¤é¢æ°ã«åæããããããªã¢ã«ã´ãªãºã ã§ãã£ã¦ãè¡åé¸æãè¡åæ¹çã«åºã¥ãã¦è¡ã Policyãã¼ã¹ã®ã®ã¢ã«ã´ãªãºã ããæ¹çå復æ³ã¨ããã
- ãåèãµã¤ãã
â 価å¤åå¾©æ³ [value iteration]
å
ã«è¦ã¦ããæ¹çå復æ³ã§ã¯ããã®ã¢ã«ã´ãªãºã ä¸ã«å«ã¾ããæ¹çè©ä¾¡ã®ããã»ã¹ã«ããã¦ãå
¨ã¦ã®ç¶æ
ã«å¯¾ãã¦ã®ã¹ã¤ã¼ãæä½ã«ããå®å
¨ããã¯ã¢ããå¦çãè¡ãããã«ãæ¹çæ¹åã®ããã»ã¹ã®æ®µéã«ç§»è¡ããã¾ã§æéããããã¨ããæ¬ ç¹ãåå¨ããã
ããã§ã価å¤å復æ³ã¨å¼ã°ããã¢ã«ã´ãªãºã ã§ã¯ãæé©è§£ã¸ã®åææ§ã失ããã¨ãªããï¼åã®ã¹ã¤ã¼ãæä½åº¦ã«ãæ¹çæ¹åãè¡ãããã«ãã¦ãæ¹çå復æ³ãããéãæ¹çæ¹åãè¡ããããã«ãã¦ããã
æ´ã«ã価å¤å復æ³ã§ã¯ãç¶æ
価å¤é¢æ°ã®æ¨å®å¤ V(s) ã®æ´æ°å¼ã¨ãã¦
ã¨ãããã«ãã³æé©æ¹ç¨å¼ã«æºããå½¢ã®æ´æ°å¼ãå©ç¨ãããã¨ã§ã
価å¤é¢æ°ãæ大åããããã«è¡åé¸æãè¡ãã¨ãããValueãã¼ã¹ã®ææ³ã¨ãªã£ã¦ããã
ãã®æ´æ°å¼ã¯ãå
ã®Policyãã¼ã¹ãªæ¹çå復æ³ã§ã®ãç¶æ
価å¤é¢æ°ã®æ´æ°å¼
ã¨æ¯è¼ããã¨ã
価å¤å復æ³ã§ã¯ãè¡åæ¹çã«é¢ãã¦ã®å
¨ã¦ã®åå² ã®æ
å ±ã«å¾ã£ã¦æ´æ°ãè¡ãã®ã§ã¯ãªãã¦ãã°ãªã¼ãã£ã¼ãªè¡åé¸æ ã«å¾ã£ã¦ãæ´æ°ãè¡ã£ã¦ãããã¨ã«ãªãã®ã§ã
åå²ã®ç·åãã¨ãæ¹çå復æ³ã«æ¯ã¹ã¦ãã°ãªã¼ãã£ã¼ã§ max ã®ã¿ãé¸æããããã«ãï¼ã¹ããããããã®è¨ç®éã¯ã価å¤å復æ³ã«æ¯ã¹ã¦æ¸å°ããã¨ããã¡ãªãããåå¨ããã
以ä¸ã®ãã¨ãã¢ã«ã´ãªãºã ã¨ãã¦ã¾ã¨ããã¨ã以ä¸ã®ããã«ãªãã
- ãåèãµã¤ãã
â ä¸è¬åæ¹çå復ï¼GPIï¼
ä¸è¬åæ¹çå復ï¼GPIï¼ã¨ã¯ãããã¾ã§è¦ã¦ããæ§ã
ãªå¼·åå¦ç¿ææ³ã§ãªãæé©è§£ãå¾ãããã®ãããå
±éã®æ çµã¿ã§è§£éããããã®èãæ¹ã»æ¦å¿µã®ãã¨ã§ãããï¼â»ã¢ã«ã´ãªãºã ã§ã¯ãªããã¨ã«æ³¨æï¼
ããã¾ã§è¦ã¦ããå¼·åå¦ç¿ææ³ã§ã¯ã
ä¾ãã°ãæ¹çå復æ³ã§ã¯ãæ¹çè©ä¾¡ã®ã«ã¼ããå®äºâæ¹çæ¹åã«ç§»è¡ã
価å¤å復æ³ã§ã¯ãï¼åã®æ¹çè©ä¾¡âï¼åã®æ¹çæ¹åã«ç§»è¡ã
ã¨ãã£ãããã«ãæ¹çè©ä¾¡ã®ããã»ã¹ã¨æ¹çæ¹åã®ããã»ã¹ã«ããã¦ããã®ç²åº¦ã®éãã¯åå¨ãããã®ã®ãæ¹çè©ä¾¡ã¨æ¹çæ¹åã®ï¼ã¤ã®ããã»ã¹ã®ç¸äºä½ç¨ã§ãæé©è§£ã«åæããã¦ããã¢ã«ã´ãªãºã ã§ãã£ãã
ä¸è¬åæ¹çå復ï¼GPIï¼ã§ã¯ããã®ãããªå¼·åå¦ç¿ææ³ã«å
±éãããæ¹çè©ä¾¡ã¨æ¹çæ¹åã®ï¼ã¤ã®ããã»ã¹ã®ç¸äºä½ç¨ã«ããæé©è§£ã¸ã®åæéç¨ããä¸è¬çæ¦å¿µï¼å
±éæ¦å¿µï¼ã¨ãã¦æ±ãã
ããã«ãããã»ã¨ãã©å
¨ã¦ã®å¼·åå¦ç¿ææ³ã¯ãï¼æ確ãªæ¹çã¨ä¾¡å¤é¢æ°ãåã³ããã«ããæ¹çè©ä¾¡ãæ¹çæ¹åããã»ã¹ãæã¤ããã«ãï¼ãã®ä¸è¬åæ¹çå復ã®æ çµã¿ã§ãå®æ§çã«è§£éãããã¨ãåºæ¥ãã
- å®å®æ§ï¼
ä¸è¬åæ¹çå復ã®æ çµã¿ã§ã®å®å®æ§ã¨ã¯ãæ¹çè©ä¾¡ã¨æ¹çæ¹åã®ããã»ã¹ã«ããã¦ããã以ä¸å¤åãçããã価å¤é¢æ°ã¨æ¹çãå ±ã«æé©ã«ãªã£ã¦ãããã¨ãæå³ãã¦ããã
ããã§ã価å¤é¢æ°ãå®å®ã«ãªãã®ã¯ãç¾å¨ã®æ¹çã¨ã® âæ´åæ§â ãåãã¦ããå ´åã§ããã
åãæ¹çãå®å®ã«ãªãã®ã¯ãè¡åæ¹çããç¾å¨ã®ä¾¡å¤é¢æ°ã«å¯¾ãã¦ã®ã°ãªã¼ãã£æ¹çã«ãªã£ã¦ããå ´åã®ã¿ã§ããã
â ã¢ã³ãã«ã«ãæ³ã«ãã価å¤æ¨å®ãæ¹çè©ä¾¡ã¨æ¹çæ¹å
ã¢ã³ãã«ã«ãæ³ã¨ã¯ãæ°å¤è¨ç®ãã·ãã¥ã¬ã¼ã·ã§ã³ãªã©ã«ããã¦ãã©ã³ãã ãªä¹±æ°ããµã³ããªã³ã°ãããã¨ã§æ°å¤è¨ç®ï¼ä¾ãã°ãç©åè¨ç®ãªã©ï¼ãè¡ãææ³ã®ç·ç§°ã§ããããä»èãã¦ãããã«ã³ã決å®éç¨ã«ããã価å¤é¢æ°ã®æ¨å®åé¡ãæ¹çè©ä¾¡ã¨æ¹çæ¹ååé¡ã«ãå¿ç¨åºæ¥ãã
å
ã«è¦ãããã«ãåçè¨ç»æ³ã¨å¼ã°ããããã«ã³ã決å®éç¨ã§ã¢ãã«åãããç°å¢ã«ããã価å¤é¢æ°ã®ãã¼ãã¹ãã©ããæ§ãå©ç¨ãã¦ãå復çã«æåãã辿ããªãã価å¤é¢æ°ãè¨ç®ãã¦ããææ³ã¯ãã¢ãã«ãã¼ã¹ã®å¼·åå¦ç¿ææ³ã§ããããã«ãã³ã®æ¹ç¨å¼ã«åºã¦ããç¶æ
é·ç§»é¢æ° ãæ¢ç¥ã§ãªãã¦ã¯ãªããªãã¨ããåé¡ããã£ãã
ããã«å¯¾ãã¦ãã¢ã³ãã«ã«ãæ³ã«ãã価å¤é¢æ°ã®æ¨å®æ³ã§ã¯ããã¼ãã¹ãã©ããæ§ãå©ç¨ãããï¼ãã«ã³ã決å®éç¨ã§ã¢ãã«åãããç°å¢ã§ã¯ãªãï¼å®éã®ç°å¢ãç¹°ãè¿ãçæããã¨ãã½ã¼ãã®ç³»åï¼ï¼ãµã³ãã«ï¼ãå©ç¨ãã¦ãçµé¨çã«ä¾¡å¤é¢æ°ãæ¨å®ããããããã®ç¶æ
é·ç§»é¢æ°ãæ¢ç¥ã§ãªãã¦ãããã¨ããã¡ãªãããåå¨ãããï¼ï¼ã¢ãã«ããªã¼ã®å¼·åå¦ç¿ææ³ï¼
â» ä½ããç¶æ
é·ç§»é¢æ°ãæ¢ç¥ã§ãªãã¦ãããã®ã¯ãç¶æ
価å¤é¢æ°ã§ã¯ãªãè¡å価å¤é¢æ°ãæ¨å®ããã¢ã«ã´ãªãºã ã«éå®ããããï¼è©³ç´°ã¯å¾è¿°ï¼
â» ã¢ã³ãã«ã«ãæ³ã§ã¯ãã¨ãã½ã¼ãã®ç³»åå
¨ä½ãå©ç¨ããã®ã§ãã¨ãã½ã¼ãã®å®äºãå¾
ã£ã¦ããæ¹çè©ä¾¡ã»æ¹çæ¹åãè¡ãå¿
è¦ãããã
â» åãåçã®åæ£ã大ããå ´åãã¢ã³ãã«ã«ãæ³ã«ãã価å¤é¢æ°ã®æ¨å®ã¯ãä¿¡é ¼åº¦ãä½ããªã£ã¦ãã¾ãã¨ããåé¡ãããã
ä¸å³ã¯ãåçè¨ç»æ³ã¨ã¢ã³ãã«ã«ãæ³ã«ããææ³ã®éãã示ããããã¯ã¢ããç·å³ã§ããã
åçè¨ç»æ³ã®å種ææ³ã¯ããã«ã³ã決å®éç¨ã§ã¢ãã«åããç°å¢ãããã«ãã³æ¹ç¨å¼ãæºãããã¨ãæ´ã«ããã«ãã³æ¹ç¨å¼ã®ãã¼ã¹ãã©ããæ§ã«ãããåçè¨ç»æ³ã®å種ææ³ã®ããã¯ã¢ããç·å³ã¯ãç¾å¨ã®ç¶æ
è¡å対 (s,a)âSÃA â次åã®ç¶æ
è¡å対 (sâ²,aâ²)âSÃA ã§å¯è½ãªé·ç§»çµè·¯å
¨ã¦ã§åå²ãã¦ããã
ä¸æ¹ãã¢ã³ãã«ã«ãæ³ã§ã¯ãï¼ã¢ãã«åãããç°å¢ã§ã¯ãªãã¦ï¼å®éã®ç°å¢ä¸ã§ãï¼ã¤ã®ã¨ãã½ã¼ããç¹°ãè¿ã試è¡ãããçµé¨çã«ï¼ã¤ã®çµè·¯ãç¹°ãè¿ã試è¡ãããã ããªã®ã§ãã¢ã³ãã«ã«ãæ³ã®ããã¯ã¢ããç·å³ã¯ãä¸å³ã®å¤ªç·é¨åã§ç¤ºãããï¼ã¤ã®ã¨ãã½ã¼ãã®éå§ããçµç«¯ã¾ã§ã®ï¼ã¤ã®ãµã³ããªã³ã°ãããçµè·¯ã¨ãªãã
ããã§ãç¶æ
価å¤é¢æ°ã¯ã
ã®ããã«æå¾
å©å¾ã«é¢ããæå¾
å¤ã§å®ç¾©ããããã®ã§ãã£ããã¨ãèããã¨ãã¢ã³ãã«ã«ãæ³ã§ä¾¡å¤æ¨å®ãè¡ãå ´åã«ã¯ãå®éã®ç°å¢ãçæããã¨ãã½ã¼ãã®ç³»åã«å¾ã£ã¦ç¶æ
ã訪åããå¾ã«è¦³æ¸¬ããåçãå¹³ååããã°è¯ããã¨ãåããã
ãããããã¨ã§ãããå¤ãã®è¨ªååæ°ãéããã«ã¤ãã¦ãå¹³åå¤ãæå¾
å¤ã«åæããããã«ãªãã
- ãåèãµã¤ãã
â åå訪åã¢ã³ãã«ã«ãæ³ã«ãã価å¤æ¨å®
åå訪åã¢ã³ãã«ã«ãæ³ã¯ãããã¨ãã½ã¼ãã«ããã¦ãç¶æ
s ã¸ã®åå訪åã®çµæã§çºçããåçã®ã¿ãå¹³åå¤ããã¢ã«ã´ãªãºã ã§ã以ä¸ã®ããã«ãªãã
â» ãã®ã¢ã«ã´ãªãºã ã¯ãç¶æ
価å¤é¢æ°ã®æ¨å®ãè¡ã£ã¦ããã ãã§ãæ¹çè©ä¾¡ã¨æ¹çæ¹åã¯è¡ã£ã¦ããªããã¨ã«æ³¨æã
â éä¸è¨ªåã¢ã³ãã«ã«ãæ³ã«ãã価å¤æ¨å®
éä¸è¨ªåã¢ã³ãã«ã«ãæ³ã¯ãã¨ãã½ã¼ã群å
¨ä½ã§ã®ãç¶æ
s ã¸ã®å
¨ã¦ã®è¨ªåå¾ã«çºçããåçã«å¯¾ãã¦ãå¹³ååå¦çãè¡ãããã®å¹³åå¤ã§ç¶æ
価å¤é¢æ°ã®æ¨å®ãè¡ãã
â» ãã®ã¢ã«ã´ãªãºã ã¯ãç¶æ
価å¤é¢æ°ã®æ¨å®ãè¡ã£ã¦ããã ãã§ãæ¹çè©ä¾¡ã¨æ¹çæ¹åã¯è¡ã£ã¦ããªããã¨ã«æ³¨æã
â ã¢ã³ãã«ã«ã-ESæ³
ã¢ã³ãã«ã«ãæ³ã«ãã価å¤æ¨å®ãæ¹çè©ä¾¡ãæå¹ã§ããããã«ã¯ã以ä¸ã®ãããªäºé
ãèæ
®ããå¿
è¦ãããã
ããã¦ããããã®äºé
ãèæ
®ããã¢ã³ãã«ã«ãæ³ããã¢ã³ãã«ã«ã-ESæ³ [ES:Exploring Starts] ã¨ããã
ç¶æ 価å¤é¢æ°ã§ã¯ãªãè¡å価å¤é¢æ°ã§æ¹çè©ä¾¡ï¼
ç¶æ é·ç§»é¢æ° ãä¸ãããã¦ãã¦ãã¢ãã«ã®ãã¤ããã¯ã¹ãæ確ãªã¨ãã¯ã
ã®é¢ä¿å¼ã«å¾ã£ã¦ãç®åºããç¶æ 価å¤é¢æ°ã®æ¨å®å¤ V(s) ãããè¡åæ¹ç Ï ãç®åºãããã¨ãåºæ¥ãã
éã«ãç¶æ é·ç§»é¢æ° ãä¸æã§ãã¢ãã«ã®ãã¤ããã¯ã¹ãä¸æãªã¨ãã¯ããã®é¢ä¿å¼ã«å¾ã£ã¦ãç¶æ 価å¤é¢æ°ã®æ¨å®å¤ V(s) ãããè¡åæ¹ç Ï ãç®åºãããã¨ãåºæ¥ãªãã®ã§ãç¶æ 価å¤é¢æ°ã§ã¯ãªãã¦è¡å価å¤é¢æ°ãæ¨å®å¤ Q(s,a) ãç®åºãããããã
ã®é¢ä¿å¼ã«å¾ã£ã¦ãè¡åæ¹çãç®åºããå¿ è¦ãããã
ã¢ã³ãã«ã«ãæ³ã®ã¡ãªããã®ï¼ã¤ã¯ãå ã«è¿°ã¹ãããã«ã¢ãã«ã®ãã¤ããã¯ã¹ãä¸æã§ãã£ã¦ãã価å¤æ¨å®ãè¡ãããã¨ã«ããã®ã§ããã®ã¡ãªããã享åããããã«ã¯ãç¶æ 価å¤é¢æ°ã§ã¯ãªããè¡å価å¤é¢æ°ã§æ¹çè©ä¾¡ããå¿ è¦ããããå°éãããªãç¶æ è¡å対ã¨éå§ç¹æ¤ç´¢ã®ä»®å®ï¼
ã¢ã³ãã«ã«ãæ³ã§ã¯ãã·ãã¥ã¬ã¼ã·ã§ã³ã«å¾ã£ã¦çµé¨çã«ã¨ãã½ã¼ãã®è©¦è¡ãè¡ãããè¡åæ¹çã確çï¼ã®æ±ºå®è«çãªè¡åæ¹çã§ãã£ãå ´åãæãã¯ãã»ã¨ãã©æ±ºå®è«çãªè¡åæ¹çã§ãã£ãå ´åãã¨ãã½ã¼ãã®è©¦è¡åæ°ãå¤ããã¦ããã¢ã³ãã«ã«ãæ³ã®ã·ãã¥ã¬ã¼ã·ã§ã³ä¸ã§å°éãããªãç¶æ ãè¡åãåºã¦ãã¦ããªããçµæã¨ãã¦ãå¹³ååãã¹ãåçããªããªãã®ã§ãåçã®å¹³åå¤ã¨ãã¦ç®åºãããè¡å価å¤é¢æ°ã®æ¨å®å¤ãæ£ããç®åºåºæ¥ãªããªãã¨ããåé¡ãåå¨ããã
ãã®åé¡ã解決ããããã®ï¼ã¤ã®æ¹æ³ã¨ãã¦ãå ¨ã¦ã®ç¶æ ã¨ããã«ç¶ãè¡åã»ããï¼ï¼ç¶æ è¡å対ï¼ããã¨ãã½ã¼ãã®éå§ç¹ã«åããã¨ãåºæ¥ãã¨ãããéå§ç¹æ¤ç´¢ã®ä»®å®ãããæ¹æ³ãèããããã
ããã«ãããç¡éåã®ã¨ãã½ã¼ãã®è©¦è¡ã«ããã¦ãå ¨ã¦ã®ç¶æ è¡å対ã訪åãããæ£ããè¡å価å¤é¢æ°ã®æ¨å®å¤ãç®åºå¯è½ã¨ãªããã¨ãä¿è¨¼ããããç¡éåã®ã¨ãã½ã¼ãã試è¡ããå¿ è¦ããããã¨ã¸ã®å¯¾å¿ï¼
ã¢ã³ãã«ã«ãæ³ã«ãã価å¤æ¨å®ããæ£ããå¤ã«åæããããã«ã¯ãåççã«ã¯ãç¡éåã®ã¨ãã½ã¼ãã試è¡ããå¿ è¦ãããã
ä½ããï¼ããã¾ã§è¦ã¦ããåçè¨ç»æ³ã®ææ³ã¨åãããã«ï¼æ¨å®å¤ã®è¿ä¼¼å¤ãå¾ãã¨ããç®çã§ããã°ãç¡éåã®ã¨ãã½ã¼ãã試è¡ããã¨ããåååæ°ã®å¤ãã¨ãã½ã¼ãã®è©¦è¡åæ°ã§è¿ä¼¼æ¨å®å¤ãå¾ããã¨ãåºæ¥ãã
æãã¯ç¡éåã®ã¨ãã½ã¼ãã試è¡ãããã¨ãé¿ããå¥ã®æ¹æ³ã¨ãã¦ã¯ãæ¹çè©ä¾¡ãå®äºãã¦æ¹çæ¹åãè¡ãæé ã§ã¯ãªãã¦ãæ¹çè©ä¾¡ã¨æ¹çæ¹åã交äºã«é次è¡ã£ã¦ããæ¹æ³ãèããããã
ï¼ä¾ãã°ãåçè¨ç»æ³ã®ææ³ã®ï¼ã¤ã§ãã価å¤å復æ³ã§ã¯ãï¼åã®æ¹çè©ä¾¡âï¼åã®æ¹çæ¹åãç¹°ãè¿ãã¢ã«ã´ãªãºã ã«ãªã£ã¦ãããï¼
ã¢ã³ãã«ã«ã-ESæ³ã§ã¯ããã®æ¹æ³ãæ¡ç¨ãã¦ãããï¼ã¨ãã¼ã½ã¼ãåä½ã§æ¹çè©ä¾¡ã¨æ¹çæ¹åã®äº¤äºã«è¡ããã¤ã¾ãã¯ãåã¨ãã¼ã½ã¼ãå®äºå¾ã«ã観測ãããåçããç®åºãããè¡å価å¤é¢æ°ã®æ¨å®å¤ã§ãæ¹çè©ä¾¡ãè¡ããã¨ãã¼ã½ã¼ãä¸ã«è¨ªåãããå ¨ã¦ã®ç¶æ ã«ããã¦ãæ¹çæ¹åãè¡ãããã¨ããå ·åã§ããã
ãããã®äºé
ãèæ
®ããã¢ã³ãã«ã«ãæ³ããã¢ã³ãã«ã«ã-ESæ³ã¨ããã以ä¸ã®ãããªã¢ã«ã´ãªãºã ã¨ãªãã
â æ¹çãªã³åã¢ã³ãã«ã«ãæ³
å
ã®ã¢ã³ãã«ã«ã-ESæ³ã§ã¯ã決å®è«çãªè¡åæ¹çã«ããã¦ãã¢ã³ãã«ã«ãã·ãã¥ã¬ã¼ã·ã§ã³ä¸ã§ãå®éã«ã¯å°éããªãç¶æ
è¡å対ãåå¨ããããã«ãå©å¾ã®å¹³åå¤ã®è¨ç®ãåºæ¥ããçµæã¨ãã¦ãåçã®å¹³åå¤ã¨ãã¦ç®åºãããè¡å価å¤é¢æ°ã®æ¨å®å¤ãæ£ããç®åºåºæ¥ãªããªãã¨ããåé¡ãåé¿ããããã«ãéå§ç¹æ¤ç´¢ï¼ï¼å
¨ã¦ã®ç¶æ
è¡å対ããã¨ãã½ã¼ãã®éå§ç¹ã«è¨å®åºæ¥ãï¼ã®ä»®å®ãè¡ã£ã¦ããã
ããããªããããã®éå§ç¹æ¤ç´¢ã®ä»®å®ã¯ãå®éä¸ã®ã¿ã¹ã¯ã«ããã¦ãéç¾å®çãªãã®ã§ãã®ã§ã次ã«ãéå§ç¹æ¤ç´¢ã®ä»®å®ãé¤å¤ãããã¨ãèããã
ãã®æ¹æ³ã«ã¯ã大ããåãã¦ï¼ã¤ã®æ¹æ³ï¼æ¹çãªã³åã¢ã³ãã«ã«ãæ³ã¨æ¹çãªãåã¢ã³ãã«ã«ãæ³ï¼ããããããã¥ããã¨ã¼ã¸ã§ã³ãã«ãå°éããªãç¶æ
è¡å対ãé¸ã³ç¶ããããã¨ããã®ãåºæ¬çãªã³ã³ã»ããã«ãªã£ã¦ããã
â» ããã§ã®ãªã³ã»ãªãã®æå³ã¯ãã¢ã³ãã«ã«ãã·ãã¥ã¬ã¼ã·ã§ã³ã§ã¨ãã½ã¼ãã®ç³»åï¼ï¼ç¶æ
è¡å対ï¼ã観測ããéã«ãæ¹çè©ä¾¡ãæ¹çæ¹åã§å¯¾è±¡ã¨ãªãè¡åæ¹çãã使ãã/ã使ããªããã¨ãããã¨ãæå³ãã¦ããã
ã¾ãã¯ãæ¹çãªã³åã¢ã³ãã«ã«ãæ³ã«ã¤ãã¦è¦ã¦ããã
æ¹çãªã³åã¢ã³ãã«ã«ãæ³ã§ã¯ã決å®è«çãªè¡åæ¹çãå
¨ã¦ã«ããã¦å®å
¨ã«æé¤ãã¦ã常ã«å
¨ã¦ã®ç¶æ
âsâS ã¨è¡å âaâA ã«ãã㦠ã¨ããã½ãããªãã®ç½®ãæããã
ããã«ããã常㫠ãªã®ã§ãå°éãããªãç¶æ
è¡å対ã¯åå¨ããªããªããéå§ç¹æ¤ç´¢ã®ä»®å®ã¯å¿
è¦ãªããªãã
ããã¦ãä¸è¨ã®ããã«æ¹çãã½ãããªãã®ã«ç½®ãæããä¸ã§ãè¡åæ¹çãã決å®è«çã«ãªãæé©æ¹çã«åãã¦ãå¾ã
ã«ç§»è¡ããã¦ããããã«ããã
æ¹çãã½ãããªãã®ã«ç½®ãæããããæ¹ã¯ãããã¤ãå¤ç¨®ãããããããã§ã¯ãε-greedy ææ³ãç¨ããæ¹æ³ãè¦ã¦ããã
ε-ã°ãªã¼ãã£æ¹çã§ã¯ã以ä¸ã®å¼ã§ä¸ããããè¡åæ¹ç ã§ããã
å
ã«è¦ãä¸è¬åæ¹çï¼GPIï¼ã«ããå
±éã®ç¥è¦ã§ã¯ãæ¹çæ¹åãè¡ããããã«ã¯ãè¡åæ¹çãã°ãªã¼ãã£æ¹çã«ç§»è¡ããªãã¦ã¯ãªããªãããããã¯ã移è¡ã®éç¨ã§ã該å½æ¹çããã£ã¨ã°ãªã¼ãã£æ¹çã§ãããã¨ã¯è¦æ±ãã¦ããããã°ãªã¼ãã£æ¹çã«ç§»è¡ãããã¨ã ããè¦æ±ããã¦ããã
ä»èãã¦ããæ¹çãªã³åã¢ã³ãã«ã«ãæ³ã®å ´åã§ã¯ãåç´ã«Îµã¼ã°ãªã¼ãã£æ¹çã¸ã¨ç§»è¡ããã ãã§ããï¼
è¡å価å¤é¢æ° ã«é¢ããã©ã®ãã㪠ε-ã°ãªã¼ãã£æ¹çããå¾æ¥ã®ã½ããæ¹çã«é¢ãã¦ãæ¹åãããæ¹çã«ãªã£ã¦ããããã®ãã¨ã¯æ¹çæ¹åå®çã«ãã£ã¦ä¿è¨¼ããã¦ããã
å³ã¡ãä»»æã®ç¶æ
âsâS ãæ°ãã ε-ã°ãªã¼ãã£ã¼æ¹ç Ïâ²ãå¾æ¥ã®ã½ããæ¹ç Ï ã«å¯¾ãã¦ã
ã¨ãªããæ¹çæ¹åå®çã®æ¡ä»¶ãæãç«ã¤ã®ã§ãæ°ãã εã¼ã°ãªã¼ãã£ã¼æ¹ç Ïâ² ã¨å¾æ¥ã®ã½ããæ¹ç Ï ã«å¯¾ãã¦ã ã¨ãªãã ã¨ãªãã
ã¤ã¾ããè¡å価å¤é¢æ° ã«é¢ããã©ã®ãã㪠ε-ã°ãªã¼ãã£æ¹çããå¾æ¥ã®ã½ããæ¹çã«é¢ãã¦ãæ¹åãããæ¹çã«ãªã£ã¦ããã
以ä¸ã®ãã¨ãè¸ã¾ãã¦ãå
ã®ã¢ã³ãã«ã«ã-ESæ³ãããéå§ç¹æ¤ç´¢ã®ä»®å®ãåãé¤ãã決å®è«çãªè¡åæ¹çãã½ããæ¹çã«ç½®ãæãã¨ã以ä¸ã®ãããªæ¹çãªã³åã¢ã³ãã«ã«ãæ³ã®ã¢ã«ã´ãªãºã ãå¾ãããã
â æ¹çãªãåã¢ã³ãã«ã«ãæ³
éå§ç¹æ¤ç´¢ã®ä»®å®ãå¤ãã¦ãã価å¤æ¨å®ãæ£ããè¡ããã¨ãåºæ¥ãå¥ã®æ¹æ³ã¨ãã¦ãæ¹çãªãåã¢ã³ãã«ã«ãæ³ãåå¨ããã
ãã®æ¹çãªãåã¢ã³ãã«ã«ãæ³ã§ã¯ãè¡åæ¹çãã次ã®ï¼ã¤ã®æ¹ç Ïâ²,Ï ã«åããã
æåæ¹ç Ïâ² [behavior policy]ï¼ã¨ãã¼ã½ã¼ããçæããããã®æ¹ç
æ¨å®æ¹ç Ï [estimation policy]ï¼æ¹çè©ä¾¡ã»æ¹çæ¹åã«ä½¿ç¨ããæ¹ç
ãã®ããã«æ¹çãï¼ã¤ã®æ¹çã«åããå ´åã¯ãæåæ¹çã¨æ¨å®æ¹çã¨ã§å¾ãããåçãç°ãªãã®ã§ãå¦ä½ã«ãã¦ã¨ãã½ã¼ããçæããæåæ¹çãããæ¨å®æ¹çã使ã£ã¦æ¹çè©ä¾¡ãæ¹çæ¹åãè¡ãã°ããã®ãï¼ã¨ããã®ã課é¡ã¨ãªãã
ãã®èª²é¡ã解決ããããã«ãæåæ¹çã¨æ¨å®æ¹çããããã§ãå®éã«çæãããã¨ãã½ã¼ãã®ç³»åãå®ç¾ããã確çãæ¯è¼ããããããåçã§è©ä¾¡ï¼ï¼ä¾¡å¤é¢æ°ã§è©ä¾¡ï¼ããã¨ãã®éã¿ã¨ãã¦å©ç¨ãããã¨ãèããã
ãã®ããã«ã¾ããä¸å³ã®ããã«ãæåæ¹çã¨æ¨å®æ¹çï¼ã¤ã®æ¹ç Ï,Ïâ² ã«å¯¾ãã¦ãã¨ãã½ã¼ãå
¨ä½ã«æ¸¡ã£ã¦ã®ã以ä¸ã®ãããªç¢ºçãå°å
¥ããã
ä»ã®ã¢ã³ãã«ã«ãæ³ã®å ´åããã®ï¼ã¤ã®ç¢ºç ã¯ãç¶æ
é·ç§»é¢æ° ãä¸æãªã®ã§ãæªç¥ã®å¤æ°ã§ãããããã®ç¢ºçã®æ¯ ãã¨ãã¨ã
ã¨ãªãã®ã§ãç¶æ
é·ç§»ç¢ºçã«ãããªãã®ã§ãã¢ãã«ã®ãã¤ããã¯ã¹ãä¸æã§ãã£ã¦ããï¼ã¤ã®è¡åæ¹çï¼æ¨å®æ¹çãæåæ¹çï¼ããè¨ç®å¯è½ãªå¤ã¨ãªãã
次ã«ãæåæ¹ç Ïâ² ã§åç R ã観測ãããã¨ãã«ãæ¨å®æ¹ç Ï ã§ãåç R ã観測ããã確çãèããã¨ããã®ç¢ºçã¯ã確çã®æ¯ ã§è¡¨ç¾ãããã®ã§ãæ¨å®æ¹ç Ï ã®ãã¨ã§ã®åçã®åè¨ ã¨è¡å価å¤é¢æ°ã®æ¨å®å¤ Q(s,a) ã¯ã以ä¸ã®ãããªã¢ã«ã´ãªãºã ã§æ±ã¾ããã¨ãåããã
ããã¾ã§ã®äºé
ãã¢ã«ã´ãªãºã ã¨ãã¦ã¾ã¨ããã¨ã以ä¸ã®ãããªæ¹çãªãåã¢ã³ãã«ã«ãæ³ã®ã¢ã«ã´ãªãºã ãå¾ãããã
â ã¢ã³ãã«ã«ãæ³ã®é©ç¨ä¾
- ï¼ä¾ï¼éä¸è¨ªåã¢ã³ãã«ã«ãæ³ãå©ç¨ããåç´ãªè¿·è·¯æ¢ç´¢åé¡
â TDå¦ç¿ï¼æéçå·®åå¦ç¿ï¼
å
ã®ã¢ã³ãã«ã«ãæ³ã¯ãã¢ãã«ããªã¼ã®å¼·åå¦ç¿ã§ã¢ãã«ãå¿
è¦ã¨ããªãããå®éã®ç°å¢ãçæããã¨ãã½ã¼ãã®éå§ããçµç«¯ã¾ã§ã§ç¹°ãè¿ããµã³ããªã³ã°ãè¡ãããã«ãã¨ãã½ã¼ãã®å®äºã¾ã§ã«å¾
ããªãã¦ã¯è¨ç®å¯è½ã¨ãªããªãåé¡ãåå¨ããã
ä¸æ¹ãåçè¨ç»æ³ã¯ããã¼ã¹ãã©ããæ§ã«ããã¨ãã½ã¼ãã®å®äºãå¾
ããã¨ãè¨ç®å¯è½ã¨ãªãããã¢ãã«ãã¼ã¹ã®å¼·åå¦ç¿ææ³ã§ãããç¶æ
é·ç§»ç¢ºçã®å½¢ãå
·ä½çã«ä¸ãããã¦ããªãã¨ãè¨ç®ãåºæ¥ãªãã¨ããåé¡ãåå¨ããã
ãã®ä¸¡è
ï¼MCæ³ãDPæ³ï¼ã®å©ç¹ãç¹ãè¾¼ãã æé©ä¾¡å¤é¢æ°ã®æ¨å®ææ³ã¨ãã¦ãTDå¦ç¿ã¨å¼ã°ããã¢ãã«ããªã¼ã®å¼·åå¦ç¿ææ³ãåå¨ããã
å
·ä½çã«ã¯ããã®TDå¦ç¿ã§ã¯ãç¶æ
é·ç§»ç¢ºçã®å
·ä½çãªå½¢ãå¿
è¦ããããªããã¤ããã¼ãã¹ãã©ããæ§ãç¨ãã¦ãã¨ãã½ã¼ãã®çµç«¯ã¾ã§å¾
ããã«ã価å¤é¢æ°ã®æ´æ°ããªã³ã©ã¤ã³åã§é次è¡ããã¨ãåºæ¥ãã
â» ä½ããã¨ãã½ã¼ãã®å®äºãå¾
ããã«ãé次ç¾æç¹ã§ã®è¦ç©ãããè¡ã£ã¦ãããã¨ã«ãªããããï¼ã¨ãã½ã¼ãå
¨ä½ã«æ¸¡ã£ã¦ã®è¦ç©ãããè¡ãMCæ³ã¨æ¯ã¹ã¦ãç¹ã«åæ段éã«ããã¦ã¯æ£ç¢ºæ§ã«æ¬ ãããã¨ã«ãªãã
ããã§ããªã³ã©ã¤ã³åã®æ¨å®å¤ã®è¨ç®ã®ä¸è¬çãªè°è«ã®ä¾ã¨ãã¦ãå¹³åå¤ã®è¨ç®ã®åæ±ãã«ã¤ãã¦è¦ã¦ã¿ãã
å ±é
¬ ã®å¹³åå¤è¨ç®ã¯ã以ä¸ã®ããã«ãã¦è¨ç®ã§ããã
ãã®å¹³åå¤è¨ç®å¼ã®å½¢å¼ã§ã¯ãæ°ãããã¼ã¿ã追å ããããã³ã«ãåã®æä½ãå度å®è¡ããå¿
è¦ãããããã«ãè¨ç®è² è·ã大ãããªããããã¨ããåé¡ãåå¨ãããå³ã¡ã
å¾ã£ã¦ããã®å¼ããååã®å¹³åå¤ã¨ææ°ã®ãã¼ã¿ãããæ°ããå¹³åå¤ãç®åºããã¨ãã漸è¿å¼ã®è¡¨ç¾ã«æ¸ãç´ãã¨ã
å³ã¡ãå¹³åå¤ã®è¨ç®ãã漸è¿å¼ã®å½¢ã§è¡¨ç¾ããã¨ã以ä¸ã®ãããªå½¢å¼ã¨ãªãã
- æ°ããæ¨å®å¤ â å¤ãæ¨å®å¤ï¼ã¹ããããµã¤ãº â [ææ°ã®æ´æ°ãã¼ã¿ ã¼ å¤ãæ¨å®å¤]
ãã®æ¼¸è¿å¼ã®è¡¨ç¾ã§ã¯ãæ°ãããã¼ã¿ã«å¯¾ãã¦ãé½åº¦å¹³åå¤è¨ç®ããç´ãå¿
è¦ã¯ãªãããªã³ã©ã¤ã³åã®æç¶ããå¯è½ã¨ãªããè¨ç®è² è·ã軽æ¸ãããã¨ãã£ãã¡ãªãããåå¨ããã
次ã«ããã®æ¼¸è¿å¼ã®è¡¨ç¾ã§ã®ä¾¡å¤é¢æ°ã®æ¨å®æ¹æ³ããå
ã®é次訪åã¢ã³ãã«ã«ãæ³ã«ãã価å¤æ¨å®ã®æ¹æ³ã«é©ç¨ãã¦ã¿ããã¨ãèããã
å
ã®ã¢ã³ãã«ã«ãæ³ã«ãã価å¤æ¨å®ã®æ¹æ³ã§ã¯ãåç¶æ
s ã«å¯¾ããå¾ãããåçã®ãªã¹ã Returns(s) ãå¹³ååãããã®ã§ä¾¡å¤é¢æ°ã®æ¨å®ãè¡ã£ã¦ããããããã漸è¿å¼ã®å½¢ã§è¡¨ç¾ããã¨ã
ãã®åç ãç®æ¨å¤ã¨ãã漸è¿å¼ã®å½¢ã§è¡¨ç¾ãããé次訪åã¢ã³ãã«ã«ãæ³ã«ãã価å¤æ¨å®ææ³ããã¢ã«ãã¡ä¸å¤MCæ³ã¨ããã
å°ããã®ã¢ã«ãã¡ä¸å¤MCæ³ã¯ã漸è¿å¼ã®å½¢ã§è¡¨ç¾ããã¦ããããå ±é
¬ã®å¹³åå¤ã§ããåç ãã¨ãã½ã¼ãã®å®äºã¾ã§ã¾ããªãã¨è¨ç®ã§ããªãããã漸è¿å¼ã®ã¡ãªããã§ãããªã³ã©ã¤ã³åã®æç¶ãã®ã¡ãªããã¯äº«åã§ããªãã
â TD(0)æ³
TDå¦ç¿ã§ã¯ããã®Î±ä¸å¤MCæ³ã®ããã«ãã¨ãã½ã¼ãã®å®äºã¾ã§ã¾ããªãã¨è¨ç®ã§ããªãåç ã§ã¯ãªãã次ã®ã¹ãããã§ã®ä¾¡å¤é¢æ°ã¨å ±é
¬ã®æ¨å®å¤ ã使ç¨ããã
å³ã¡ã ã®ï¼ã¹ãããã§ã®é¢ä¿å¼ããå
ã®ä¸å¤MCæ³ã®å¼ ã®åç ã®é
ã«å
¥åããå¼
ã«ããã価å¤é¢æ°ã®æ¨å®å¤ã®æ´æ°ãè¡ãã
ãã®ãããªï¼ã¹ãããéã§ã®ç´è¿ã®ä¾¡å¤é¢æ°ã®æ¨å®å¤ãç¨ããæãåç´ãªTDæ³ããTD(0)æ³ã¨å¼ã¶ã
以ä¸ã®å³ã¯ãã¢ã³ãã«ã«ãæ³ã¨TD(0)ã®ããã¯ã¢ããç·å³ãæ¯è¼ããå³ã§ããã
ãã®å³ããåããããã«ããã®TD(0)æ³ã§ã¯ãαä¸å¤MCæ³ã¨æ¯è¼ããã¨ã ãç®æ¨å¤ã¨ãã¦æ´æ°ãè¡ããããã®éã«ãαä¸å¤MCæ³ã¨ã¯ç°ãªããã¨ãã½ã¼ãã®å®äºã¾ã§å¾
ããªãã¨ãã次ã®ã¹ããã t+1 ã¾ã§å¾
ã¤ã ãã§ããã
â» ãã® TD(0)æ³ã§ã¯ãä¸å³ã®ããã¯ã¢ããç·å³ã§ç¤ºããããã«ãï¼ã¹ãããã§ã®ããã¯ã¢ããå¦çã®å¼ã«ãªã£ã¦ããã®ã§ãï¼ã¹ãããTDæ³ã§ããã¨ãè¨ããï¼è©³ç´°ã¯å¾è¿°ï¼
- ãåèãµã¤ãã
â Sarsaï¼æ¹çãªã³åTDå¶å¾¡ï¼
ããã§ã¯ãTDæ³ãå¶å¾¡åé¡ã«é©ç¨ããæ¹æ³ã«ã¤ãã¦è¦ã¦ããã
TDæ³ãå¶å¾¡åé¡ã«é©ç¨ããææ³ã«ã¯ã大ããåãã¦ãæ¹çãªã³åTDå¶å¾¡ææ³ã¨æ¹çãªãåTDå¶å¾¡ææ³ã®ï¼ã¤ãåå¨ããã
Sarsa ã¯ããã®ãã¡æ¹çãªã³åTDå¶å¾¡ææ³ã«åé¡ãããææ³ã®ï¼ã¤ã§ãããå
ã®TDæ³ã¨ ε-greedy ææ³ãçµã¿åãããææ³ã§ãããããå
·ä½çã«ã¯ãè¡å価å¤é¢æ°ã®æ¨å®ãTDæ³ã«ãã£ã¦è¡ããã¨ãã½ã¼ãã®æ´æ°ï¼ï¼è¡åé¸æï¼ã ε-greedy ãªè¡åæ¹çã«ãã£ã¦è¡ãææ³ã§ããã
ã¾ããè¡åé¸æã«é¢ãã ε-greedy ææ³ã«ã¤ãã¦è¦ã¦ããã
è¡å価å¤é¢æ° Q(s,a) ã«é¢ãã¦ã°ãªã¼ãã£ãªè¡åæ¹çã¨ã¯ã ã¨ãªããããªè¡å a ã®ãã¨ã§ãã£ããããã®ã°ãªã¼ãã£ã¼ãªè¡åæ¹çã§ã¯ã常ã«ãã®æç¹ã§ã®æé©è§£ã模索ãããããå±æçæé©è§£ã«é¥ãæããåå¨ããã
ããã§ãå±æçæé©è§£ãè±åºãã¦å¤§åçæé©è§£ã«ç§»åã§ããããã«ããªã¹ã¯ãã¨ã£ã¦ãä¸å®ã®ç¢ºç ε ã§ã©ã³ãã ãªè¡åãã¨ãããªè¡åæ¹çãèããããã®è¡åæ¹çã ε-greedy ææ³ã¨ããã
Sarsa ã§ã¯ãè¡å価å¤é¢æ°ã®æ¨å®ãTDæ³ã«ãã£ã¦è¡ãããTDæ³ã«ããè¡å価å¤é¢æ°ã®æ´æ°ã¨æ¨å®ã¯ã以ä¸ã®ãããªæ¼¸è¿å¼ã§è¡¨ç¾ãããã®ã§ãã£ãã
è¨å·ã®ç°¡ååã®ãããt ã®æ·»åãªãã§æ¸ãæããã¨ã以ä¸ã®ããã«ãªãã
Sarsa ã§ã¯ããã®æ´æ°å¼ã«ãããæ¨å®ããè¡å価å¤é¢æ°ã®æ´æ°ãè¡ãã
â» Sarsa ã¨ããã¢ã«ã´ãªãºã ã®ååã¯ãä¸å¼ã®æ¨å®å¼ã®å³è¾ºã®å¤æ° s,a,râ²,sâ²,aâ² ã®é æåãç¹ãããã®ã«ç±æ¥ããã
ããã¦ãã¨ãã½ã¼ãã®æ´æ°ï¼ï¼è¡åé¸æï¼ã¯ãε-greedy ææ³ã«å¾ã£ãè¡åæ¹çã«ãã£ã¦è¡ãã
以ä¸ã®å³ã¯ãSarsa ã®ããã¯ã¢ããç·å³ã§ããã
ä¸å³ããåããããã«ããã® Sarsa ã¯ãε-greedy ãªè¡åæ¹çã«ãã£ã¦ã¨ãã½ã¼ãã®æ´æ°ï¼ï¼è¡åé¸æï¼ãè¡ãããããã«ä¼´ã£ã¦æ¬¡ã®ç¶æ
s',a' ãå®ã¾ãã価å¤é¢æ°ã®æ´æ°ãè¡ããããã¨ã«ãªãã
å³ã¡ãSarsa ã§ã¯ãå®éã«é²ãè¡åï¼ï¼ã¨ãã½ã¼ããæ´æ°ããè¡åï¼ã¨ä¾¡å¤é¢æ°ã®æ¨å®å¤ã®æ´æ°ã«ç¨ããè¡åãåæ§ã¨ãªãã
ããã¦ããã®ãããªå¶å¾¡ææ³ããæ¹çãªã³åTDå¶å¾¡ã¨ããã
ãã® Sarsa ãã¢ã«ã´ãªãºã ã¨ãã¦ã¾ã¨ããã¨ã以ä¸ã®ããã«ãªãã
â Qå¦ç¿ [Q-learning]ï¼æ¹çãªãåTDå¶å¾¡ï¼
å
ã«è¦ã Sarsa ã¯ãã¨ãã½ã¼ãã®æ´æ°ï¼ï¼è¡åé¸æï¼ã¨ä¾¡å¤é¢æ°ã®æ´æ°ã®åæ¹ããå
±ã«åã ε-greedy ãªè¡åæ¹çã«å¾ã£ã¦è¡ãããæ¹çãªã³åTDå¶å¾¡ã¢ã«ã´ãªãºã ã§ãã£ãã
ä¸æ¹ãQå¦ç¿ã¯ãã¨ãã½ã¼ãã®æ´æ°ï¼ï¼è¡åé¸æï¼ã¨ä¾¡å¤é¢æ°ã®æ´æ°ã®åæ¹ããå¿
ãããåãè¡åæ¹çã«ãªãã¨ã¯éããªãæ¹çãªã³åTDå¶å¾¡ã¢ã«ã´ãªãºã ã«ãªã£ã¦ããã
ã¾ããQå¦ç¿ã«ãããã価å¤é¢æ°ã®æ¨å®å¤ã®æ´æ°å¼ã¯ã以ä¸ã®ããã«ãªãã
ãã®å¼ããåããããã«ãSarsa ã¨ã¯ç°ãªããQå¦ç¿ã§ã¯ã価å¤é¢æ°ã®å¤ã max ã¨ãªããããªã°ãªã¼ãã£ã¼ãªè¡åé¸æãä¸å¾ã«è¡ãã
ï¼â» Sarsa ã§ã¯ãε-greedy ãªè¡åæ¹çã«å¾ã£ã¦ãä¸å®ã®ã©ã³ãã æ§ãç¹ãè¾¼ãã è¡åé¸æã§ãã£ããï¼
ä¸æ¹ãã¨ãã½ã¼ãã®æ´æ°ï¼ï¼è¡åé¸æï¼ã¯ãSarsa ã¨åæ§ã«ãã¦ãε-greedy ææ³ã«å¾ã£ãè¡åæ¹çã«ãã£ã¦è¡ãã
以ä¸ã®å³ã¯ãQå¦ç¿ã®ããã¯ã¢ããç·å³ã§ããã
ä¸å³ããåããããã«ãï¼æ¨å®å¤ã®æ´æ°å¼ã«å«ã¾ããé
ã§ããï¼ ã«ããã°ãªã¼ãã£ã¼ãªè¡åé¸æã¨ãε-greedy ãªè¡åæ¹çã«ããã¨ãã½ã¼ãã®æ´æ°ï¼ï¼è¡åé¸æï¼ã¨ã¯ãå¿
ãããä¸è´ããã¨ã¯éããªãã
å³ã¡ãQå¦ç¿ã§ã¯ãå®éã«é²ãè¡åï¼ï¼ã¨ãã½ã¼ããæ´æ°ããè¡åï¼ã¨ä¾¡å¤é¢æ°ã®æ¨å®å¤ã®æ´æ°ã«ç¨ããè¡åãç°ãªãã
ããã¦ããã®ãããªå¶å¾¡ææ³ããæ¹çãªãåTDå¶å¾¡ã¨ããã
ãã®Qå¦ç¿ãã¢ã«ã´ãªãºã ã¨ãã¦ã¾ã¨ããã¨ã以ä¸ã®ããã«ãªãã
ãMemoã
- Sarsaã¨Qå¦ç¿ã®ã®åææ§ã®æ¯è¼
è¡åé¸æã«é¢ãã¦ã¯ãSarsaã¨Qå¦ç¿ã¯å ±ã« ε-greedy ã«ããã©ã³ãã æ§ããã£ãè¡åé¸æã¨ãªããã価å¤é¢æ°ã®æ¨å®å¤ã®æ´æ°ã«é¢ãã¦ã¯ãSarsa ã ε-greedy ã©ã³ãã æ§ãæ´æ°å¼ã«å ¥ãä¸æ¹ã§ãQå¦ç¿ã§ã¯ã ã®ããã«ã©ã³ãã æ§ãæããªãä¸å¾ã®ã°ãªã¼ãã£ã¼ãªè¡åé¸æã¨ãªãã
å¾ã£ã¦ãã©ã³ãã æ§ããªãåãQå¦ç¿ã®ã»ãã Sarsa ããåæãæ©ãå¾åãããã
- ãåèãµã¤ãã
â nã¹ãããTDæ³
å
ã®TD(0)ã§ã¯ã価å¤é¢æ°ã®æ´æ°å¼ï¼ï¼æ¼¸åå¼ï¼ ã®å¼ã§ã®åç R ããã¦ãï¼ã¹ãããã§ã®é¢ä¿å¼ ã代å
¥ããå¼
ã¤ã¾ãã¯ãï¼ã¹ãããããã¯ã¢ããã§ä¾¡å¤é¢æ°ã®æ¨å®ãè¡ã£ã¦ããã
ä¸æ¹ãã¢ã³ãã«ã«ãæ³ã§ã¯ãã¨ãã½ã¼ãã®éå§ããçµç«¯ã¾ã§ã®å
¨ã¦ã®ç³»åã«åºã¥ãã¦ããã¯ã¢ãããè¡ã£ã¦ããã
nã¹ãããTDæ³ã¯ããã®ï¼ã¹ãããããã¯ã¢ããã§ããTD(0)æ³ã¨ãå
¨ã¹ãããããã¯ã¢ããã§ããã¢ã³ãã«ã«ãæ³ã®ä¸éã®ããã¯ã¢ããã§ãããn ã¹ãããããã¯ã¢ããã§ä¾¡å¤é¢æ°ã®æ¨å®ãè¡ãï¼ä¸å³åç
§ï¼
â» å°ãå
ã® TD(0) å¦ç¿ã¯ããã®nã¹ãããTDæ³ã®ç¯çã«ãããn=1 ã®ã¨ãã®ææ³ã¨ãªãã
å¼ã§æ¸ãã¨ãTDå¦ç¿ã«ãããã価å¤é¢æ°ã®æ´æ°å¼ï¼ï¼æ¼¸åå¼ï¼
ã®åç R ããã¦ãTD(0) æ³ã§ã¯ãï¼ã¹ãããã§ã®é¢ä¿å¼ ã代å
¥ãã¦ããã®ã«å¯¾ãã¦ã
nã¹ãããTDæ³ã§ã¯ãnã¹ãããå
ã§ã®é¢ä¿å¼
ã«æ¡å¼µãã¦ä»£å
¥ãããå³ã¡ã価å¤é¢æ°ã®æ¨å®å¤ã®æ´æ°å¼ã¯ã
ã¨ãªãã
â TD(λ)æ³
â TD(λ)ã®åæ¹è¦³æ¸¬çãªè¦æ¹
ä¸è¬çã«ãTDæ³ã«ãããããã¯ã¢ãã
ã®åçé
ï¼ï¼ç®æ¨å¤ï¼ã¯ãnã¹ãããåçã«å¯¾ãã¦ã®ã¿ã ãã§ã¯ãªããnã¹ãããåçã®å¹³åå¤ã«å¯¾ãã¦ãé©ç¨ã§ãããã®å¹³ååãããåçã§ãä¸å¼ã«å¾ã£ã¦ä¾¡å¤æ¨å®ãè¡ããã¨ãåºæ¥ãã
TD(λ) ã¢ã«ã´ãªãºã ã¯ããã®ãããªãnã¹ãããããã¯ã¢ãããå¹³ååããåçã§ä¾¡å¤æ¨å®ãè¡ãã¢ã«ã´ãªãºã ã§ããã
詳細ã«ã¯ãå n ã¹ãããåç ã ã§éã¿ä»ãå¹³ååããåç
ãåçã¨ãã¦å©ç¨ãã¦ã価å¤æ¨å®ãè¡ãã
â» ãã®å¼ã«ããã¦ãλ=0 ã¨ããã¨ã ã¨ãªãã®ã§ï¼ã¹ãããåçã¨ãªããTD(0) ã«å¸°çããã
â» åãλ=1 ã¨ããã¨ã ã¨ãªããã¢ã«ãã¡ä¸å¤MCã«å¸°çããã
ãã®éã¿ä»ãã®æ§åããããã¯ã¢ããç·å³ã¨ã¨ãã«å³ç¤ºãããã®ã以ä¸ã®å³ã§ããã
ããã§ããã®éã¿ä»ãå¹³ååããå©å¾ ã®è¨ç®ã¯ãç¾å¨ã®æé t ããå°æ¥ã®æé t+1,t+2,... ã«æ¸¡ã£ã¦ã®éã¿ä»ãå¹³ååå¦çã§ãããæéã®çµéæ¹å tât+1ât+2â... ã«æ²¿ã£ã¦è¦³æ¸¬ãã¦ããã®ã§ãåæ¹è¦³æ¸¬çè¦æ¹ã¨ãªã£ã¦ãããã¨ãåããã
â TD(λ)ã®å¾æ¹è¦³æ¸¬çãªè¦æ¹ã¨é©æ ¼åº¦ãã¬ã¼ã¹
å
ã«è¦ãTD(λ)ã®åæ¹è¦³æ¸¬çè¦æ¹ã§ã¯ã
ã®å¼ã«å¾ã£ã¦ãéã¿ä»ãå¹³ååãããåç ãç®åºããããããã¯ãç¾å¨ã®æé t ããå°æ¥ã®æé t+1,t+2,... ã«æ¸¡ã£ã¦ã®éã¿ä»ãå¹³ååå¦çã§ãããæéã®çµéæ¹å tât+1ât+2â... ã«æ²¿ã£ã¦è¦³æ¸¬ãã¦ããã®ã§ãåæ¹è¦³æ¸¬çè¦æ¹ã¨ãªã£ã¦ããã
ããããªãããåæ¹è¦³æ¸¬çè¦æ¹ã®æ¹æ³ã§ã¯ãæéã n ã¹ãããçµéå¾ã§ãªãã¨ãå®éã«å©ç R_t(n) ãè¨ç®ã§ããªãã®ã§ã価å¤æ¨å®ãè¡ããªãã¨ããåé¡ãåå¨ããã
ãã®åé¡ã解決ããããã«ãåæ¹è¦³æ¸¬çè¦æ¹ãå転ããæéã®çµéæ¹åã¨ã¯éã®æ¹åããã¿ãå¾æ¹è¦³æ¸¬çè¦æ¹ããTD(λ)ãèãç´ãã
ãã詳細ã«ã¯ãä»èãã¦ããTD(λ)ã«ããã¦ãå¾æ¹ã®æéã¹ããã t+n ããè¦ããTD誤差ï¼ï¼ç¾å¨ã®æ¨å®ä¾¡å¤ã¨ã®å·®åï¼ ããæéã¹ããã t ã§ã®ä¾¡å¤æ¨å® ã«ã©ã®ç¨åº¦ã®éã¿ã§å½±é¿ãä¸ãã¦ããã®ãï¼ã¨ãããã¨ãèããã¨ãTD(λ)ã«ããã¦ã¯ãåæéã¹ããã t+1,t+2,... ã§ã®TD誤差ã¯ãnã¹ãããåã®ä¾¡å¤ã®æ¨å®ã«ã ã®éã¿ã§å½±é¿ãä¸ãã¦ããã¨ãããã¨ãåããã
å¾ã£ã¦ã ã«æ¯ä¾ããéã¿ã§å½±é¿ãä¸ãããããªä»¥ä¸ã®ãããªé©æ ¼åº¦ãã¼ã¬ã¹ãªããã®ãèããã
- ãã®é©æ ¼åº¦ãã¼ã¬ã¹ã¯ã
ãæéã¹ããã t ã«ããã¦ã次ã®ç¶æ ã観測ããéã«ãããç¶æ sâS ã®ä¾¡å¤ V(s) ã«åæ ãããããã®ãç¾å¨ç¶æ ã¨ã®ä¾¡å¤ã®å·®å ã«å¯¾ãã¦ã®éã¿ã
ã表ãã¦ãããå ¨ã¦ã®ç¶æ âsâS ã«å¯¾ãã¦å®ç¾©ãããã - ãã端çã»å
æ¬çã«è¨ãæããã¨ã
ãå¼·åäºè±¡ãçºçããã¨ãã«ãåç¶æ ãå¦ç¿ä¸ã®å¤åãåãããã¨ããâé©æ ¼â ã§ãããã¨ã®åº¦åãã
ã表ãã¦ããããã®æå³ã§ãé©æ ¼åº¦ãã¬ã¼ã¹ã¨ããã
ãã®é©æ ¼åº¦ãã¬ã¼ã¹ã¯ã価å¤é¢æ°ã«åæ ãããããã®ãTD誤差 ã«å¯¾ãã¦ã®éã¿ã«ãªã£ã¦ããã®ã§ããã®ï¼ã¤ï¼ï¼TD誤差ã¨é©æ ¼åº¦ãã¬ã¼ã¹ï¼ãä¹ç®ããå¼ãããTD(λ)ã®ä¾¡å¤æ¨å®ï¼ï¼ä¾¡å¤é¢æ°ã®æ´æ°ï¼ãè¡ãã
å³ã¡ã
- ãåèãµã¤ãã
â Sarsa(λ)
Sarsa ã«å¯¾ãã¦ãTD(λ) ã¨åæ§ã«ãã¦ãé©æ ¼åº¦ãã¬ã¼ã¹ãå°å
¥ãããã®ã Sarsa(λ) ã¨ããã
ããã¯ãåç´ã«ãSarsaã«ããã価å¤æ¨å®ã®æ´æ°å¼
ããé©æ ¼åº¦ãã¬ã¼ã¹ã使ç¨ãã以ä¸ã®ãããªä¾¡å¤æ¨å®ã®æ´æ°å¼ã«ç½®ãæãããã®ã§ããã
ãã® Sarsa(λ) ãã¢ã«ã´ãªãºã ã¨ãã¦ã¾ã¨ããã¨ã以ä¸ã®ããã«ãªãã
â ã¢ã¯ã¿ã¼ã»ã¯ãªãã£ãã¯ææ³
ã¢ã¯ã¿ã¼ã»ã¯ãªãã£ãã¯ææ³ã¯ãTDæ³ã®ï¼ç¨®ã§ããããããã¾ã§ã®å¼·åå¦ç¿ææ³ã¨ã¯ç°ãªãèãæ¹ã«åºã¥ãã¢ããã¼ãã§ãããè¡åæ¹çã«åºã¥ãè¡åã¨æ¹çè©ä¾¡ã®ããã»ã¹ããããããã¢ã¯ã¿ã¼ã¨ã¯ãªãã£ãã¯ã¨ããï¼ã¤ã®æ©æ§ã«åé¢ãã¦å¼·åå¦ç¿ãã¢ãã«åãã¦ããã
ã¢ã¯ã¿ã¼ï¼è¡åå¨ï¼[actor]ï¼
è¡åæ¹ç ã«åºã¥ããè¡åãé¸æããæ©æ§ã
è¡åæ¹çã¯ã以ä¸ã®ãã㪠softmax é¢æ°ã§é¸æãããã
ã¯ãªãã£ãã¯ï¼è©ä¾¡å¨ï¼[critic]ï¼
ç¾å¨ã¢ã¯ã¿ã¼ãå©ç¨ãã¦ããè¡åæ¹ç ã«å¯¾ããè©ä¾¡ãè¡ãæ©æ§ã
ã¯ãªãã£ãã¯ã«ããæ¹çè©ä¾¡ã¯ãTD誤差 ããç¶æ
ã§è¡ãããè¡åãé¸æããã確çã§ãã ã¸ã®è©ä¾¡ã¨ãã¦å©ç¨ãããã¨ã§è¡ãããã
å³ã¡ãTD誤差ã®å¤ã«å¿ãã¦ã ã以ä¸ã®ããã«ãå¢æ¸ãããã
â ã¢ã¯ã¿ã¼ã¯ãªãã£ãã¯ææ³ã¸ã®é©æ ¼åº¦ãã¬ã¼ã¹ã®é©ç¨
ã¢ã¯ã¿ã¼ã»ã¯ãªãã£ãã¯ææ³ã«å¯¾ãã¦ããTD(λ) ã®å¾æ¹è¦³æ¸¬çè¦æ¹ã¨åæ§ã«ãã¦ãåæ¹è¦³æ¸¬çè¦æ¹âå¾æ¹è¦³æ¸¬çè¦æ¹ã«ç½®ãæãã¦ãé©æ ¼åº¦ãã¬ã¼ã¹ãå°å
¥ãããã¨ãåºæ¥ãã
ã¾ããã¢ã¯ã¿ã¼ã»ã¯ãªãã£ãã¯ææ³ï¼ï¼å³å¯ã«ã¯ãï¼ã¹ãããã»ã¢ã¯ã¿ã¼ã»ã¯ãªãã£ãã¯ææ³ï¼ã§ã¯ãç¶æ
s ã§è¡å a ãé¸æãã確ç ãã以ä¸ã®ããã«å¢æ¸ããã¦ããã
ãã®æ´æ°å¼ã¯ãTD(λ) ã§ã®æ¨å®ä¾¡å¤é¢æ°ã®æ´æ°å¼ ã«å¯¾å¿ãããã®ã«ãªã£ã¦ããã®ã§ãTD(λ) ã®å¾æ¹è¦³æ¸¬çè¦æ¹ã§ã®æ¨å®ä¾¡å¤é¢æ°ã®æ´æ°å¼
ã¨åæ§ã«ãã¦ã以ä¸ã®ããã«ãé©æ ¼åº¦ãã¬ã¼ã¹ãç¨ãã¦æ¸ãæããããã
å³ã¡ã
â TDæ³ã®é©ç¨ä¾
- ï¼ä¾ï¼Sarsa ãå©ç¨ããåç´ãªè¿·è·¯æ¢ç´¢åé¡
- ï¼ä¾ï¼Qå¦ç¿ãå©ç¨ããåç´ãªè¿·è·¯æ¢ç´¢åé¡
- ï¼ä¾ï¼Qå¦ç¿ãå©ç¨ããåç«æ¯å課é¡ï¼CartPoleï¼
- ï¼ä¾ï¼Qå¦ç¿ãå©ç¨ãã FrozenLake
â é¢æ°ã«ãã価å¤é¢æ°ã®è¿ä¼¼ï¼é¢æ°è¿ä¼¼ææ³ï¼
ããã¾ã§è¦ã¦ããå種強åå¦ç¿ã¢ã«ã´ãªãºã ã§ã¯ããããããé¢æ£çãªç¶æ
空é ãåã³ãé¢æ£çãªè¡å空é ã«å¯¾ãã¦ã
ç¶æ
価å¤é¢æ° V(s) ã®åè¦ç´
æãã¯ãè¡å価å¤é¢æ° Q(s,a) ã®åè¦ç´
ã®æ¨å®ãè¡ã£ã¦ããã
â» ä¸å³ã¯ãç¶æ
価å¤é¢æ° V(s) ã®é¢æ£çãªåç¶æ
sâS ã«å¯¾ãã¦ã®ãåè¦ç´ ã®æ¨å®å¤ã®æ¨¡å¼å³ãè¡å価å¤é¢æ° Q(s,a) ã§ã¯ãé¢æ£çãªåç¶æ
è¡å対 (s,a)âSÃA ã«å¯¾ãã¦ã®ï¼æ¬¡å
ããããã«ãªãã
ããã¦ããã®ãããªå¦çãå®ç¾ããããã«ããããã®é¢æ£çãªç¶æ
空éãé¢æ£çãªè¡å空éã«å¯¾ãã¦ã®ã価å¤é¢æ°ã®åè¦ç´ ã®æ¨å®å¤
ããã®ã¾ã¾ã¡ã¢ãªä¸ã«ä¿ç®¡ãã価å¤é¢æ°ã®æ¨å®å¤ã®æ´æ°å¦çãè¡ã£ã¦ããã
ãã®ãããªæ¹å¼ãããã¼ãã«æ³ã¨ããã
ããããªããããã®ãã¼ãã«æ³ã§ã¯ãå¤ãã®å®éä¸ã®å¼·åå¦ç¿ã®ã¿ã¹ã¯ã«ããããã«ãç¶æ
æ°ãè¡åæ°ãè¨å¤§ãªæ°åå¨ããå ´åãæãã¯ãç¶æ
ãè¡åãé¢æ£çã§ã¯ãªãé£ç¶ã§ããå ´åã«ããã¦ãè¨å¤§ãªã¡ã¢ãªãæ¶è²»ãããåè¨ç®ã³ã¹ããè¨å¤§ã«ãªãã¨ããåé¡ãåå¨ããã
ãã®åé¡ã解決ããããã®å¥ã®æ¹æ³ã¨ãã¦ãä¸å³ã®ããã«ãçã®ä¾¡å¤é¢æ°ããé¢æ£çãªç¶æ
è¡å対ã«å¯¾ãã¦ã®ä¾¡å¤é¢æ°ã§æ¨å®ããã®ã§ã¯ãªãã¦ãé£ç¶ãªé¢æ°ã§è¿ä¼¼ãããã¨ãèããããã®ãããªææ³ããé¢æ°è¿ä¼¼ææ³ã¨ããã
ã¾ããçã®ä¾¡å¤é¢æ°ã®é¢æ°è¿ä¼¼ãè¡ãé¢æ°ããæéã¹ããã t ã«ä¾åãããã©ã¡ã¼ã¿ ã§è¡¨ç¾ãããé¢æ°ã¨ããã
å³ã¡ãæéã¹ããã t ã§ã®ä¾¡å¤é¢æ°ãã以ä¸ã®ããã«è¿ä¼¼ãããã¨ãèããã
â» ãã®è¿ä¼¼é¢æ°ã¯ãä¾ãã°ããã¼ã»ãããã³ã®å ´åã¯ããã©ã¡ã¼ã¿ ãå層ã®ãã¼ãéã®éã¿ã¨ãªãã
â» å¥ã®ä¾ã¨ãã¦ã決å®æ¨ã§è¨ç®ãããé¢æ°ãããã®è¿ä¼¼é¢æ°ã¨ãããã¨ãåºæ¥ããï¼ãã®å ´åã®ãã©ã¡ã¼ã¿ ã¯ãæ¨ã®å
¨ã¦ã®åå²æ°ã¨èã®æ°ã決ãããããªãã©ã¡ã¼ã¿ã«ç¸å½ãããï¼
ããã§ããã®ãã©ã¡ã¼ã¿ ã®è¦ç´ æ°ã¯ãç¶æ
æ° |S| ã«æ¯ã¹ã¦ãå§åçã«å°ãªãããã©ã¡ã¼ã¿ï¼ã¤ãå¤æ´ããã°ãå¤ãã®ä¾¡å¤é¢æ°ã®æ¨å®å¤ãå¤æ´ããããã¨ãæ³å®ãã¦ããã
ããã«ããããã¼ãã«æ¹å¼ã§ã¡ã¢ãªç®¡çããææ³ã«æ¯ã¹ã¦ã大å¹
ã«ã¡ã¢ãªãæ¶è²»éãåæ¸ã§ããããã«ãªãã
- ãåèãµã¤ãã
â æ失é¢æ°ã¨ãã¦ã®æå°ï¼ä¹èª¤å·®ï¼MSEï¼
å¼·åå¦ç¿ã«ãããé¢æ°è¿ä¼¼ã§ã¯ãä¸è¬çã«ãæ失é¢æ° L ã¨ãã¦ãæå°ï¼ä¹èª¤å·®ï¼MSEï¼ãèãããããæå°ï¼â»åºæ¥ãã°å¤§åçæé©è§£ã®æå³ã§ã®æå°ã ããä¸è¬çã«ã¯ãå±æçæé©è§£ã®æå³ã§ã®æå°ã«ãªããã¨ãå¤ãï¼ã«ãªãããã«ããã©ã¡ã¼ã¿ ã®å¦ç¿ãè¡ãã
å³ã¡ã
ããã§ãP(s) ã¯ãç°ãªãç¶æ
ã®èª¤å·® ã«å¯¾ãã¦ãéã¿ä»ããè¡ãåå¸é¢æ°ã§ããã
ä¸è¬çã«ãå
¨ã¦ã®ç¶æ
s ã«å¯¾ãã¦ãè¯ã価å¤é¢æ°ã®è¿ä¼¼ãå¾ããã¨ã¯é£ããããã®ãããããå¹¾ã¤ãã®ã®ç¶æ
s ã«å¯¾ãã¦ã¯ãè¯ãè¿ä¼¼ã¨ãã代ããã«ãå¥ã®å¹¾ã¤ãã®ç¶æ
ã®è¿ä¼¼ãç ç²ã«ãããã¨ãå¤ãããã®ç¶æ
ã«å¯¾ãã¦ã®éã¿ã®åå¸é¢æ° P(s) ãå°å
¥ãããã¨ã«ããããã®ãããªãã¬ã¼ããªãã表ç¾ãããã¨ãåºæ¥ãã
â ãã©ã¡ã¼ã¿ã®æ´æ°å¼ã¨ãã¦ã®ææ¥éä¸æ³
å
ã«è¦ãããã«ãé¢æ°è¿ä¼¼å¨ã«ããçã®ä¾¡å¤é¢æ°ã¸ã®é¢æ°è¿ä¼¼ãè¡ãããã«ã¯ãæ失é¢æ°ã¨ãã¦ã®æå°ï¼ä¹èª¤å·®ï¼MSEï¼ãæ¡ç¨ãããããæå°åããããã«ãã©ã¡ã¼ã¿ãå¦ç¿ããã°è¯ãã
ããã§ã¯ããã®ãã©ã¡ã¼ã¿ã®å¦ç¿è¦åã§ãããã©ã¡ã¼ã¿ã®æ´æ°å¼ããææ¥éä¸æ³ã«ãã£ã¦å°ãã
ææ¥éä¸æ³ã§ã¯ãæ失é¢æ° L ãæãå¤åããæ¹åï¼ï¼å¾é
æ¹åï¼ã«ããã©ã¡ã¼ã¿ãæ´æ°ããã
å³ã¡ã
ããã§ããã®æ失é¢æ°ã®å¾é
ã¯
ã¨æ¸ããã®ã§ãå
ã®ææ¥éä¸æ³ã«ãããã©ã¡ã¼ã¿ã¼ã®æ´æ°å¼ã¯ã以ä¸ã®ããã«æ¸ãæããããã
ããã§éè¦ãªã®ã¯ããã®ãã©ã¡ã¼ã¿ã®æ´æ°å¼
ã«å«ã¾ããçã®ä¾¡å¤é¢æ° ã¯ãä¸æã§ããã¨ãããã¨ã§ããã
ããããæ師ããå¦ç¿ã¨å¼·åå¦ç¿ã®å¤§ããªéãã®ï¼ã¤ã§ãããå¼·åå¦ç¿ã§ã¯æ£è§£ã¨ãªãçã®ä¾¡å¤é¢æ°ã¨ããæ師ãã¼ã¿ãä¸ãããã¦ããããæ師ãªãå¦ç¿ã¨ãªã£ã¦ããã
ããããªããããã®ãã©ã¡ã¼ã¿ã®æ´æ°å¼ã«å¾ã£ã¦ããã©ã¡ã¼ã¿ã®å¦ç¿ãé²ãã¦ããã«ã¯ãä½ãããã®ç®æ¨ã¨ãªãå¤ãå¿
è¦ã§ãããã¨ã«ã¯å¤ãããªãã
ã¤ã¾ããçã®ä¾¡å¤é¢æ° ã§ã¯ãªããä½ãããã®ç®æ¨å¤ ã«å¾ã£ã¦ããã©ã¡ã¼ã¿ã®å¦ç¿ãé²ãã¦ããå¿
è¦ãããã
å³ã¡ã
ãã®ä½ãããã®ç®æ¨å¤ ã¨ãã¦è¯ãç®æ¨å¤ãä¸ããã®ããå
ã«è¦ã¦ããã¢ã³ãã«ã«ãæ³ãTDæ³ãªã©ã®å種強åå¦ç¿ææ³ã§ããã
ä¾ãã°ãã¢ã³ãã«ã«ãæ³ã§ã®ã ã®æ´æ°å¼ã§ç¨ãã ãç®æ¨å¤ã¨ãã¦å©ç¨ã§ãããï¼ï¼
ãã®ã¨ãããã©ã¡ã¼ã¿ã®å¦ç¿ã®æ´æ°å¼ã¯ã以ä¸ã®ããã«ãªãã
â» ãã®ææ¥éä¸æ³ãç¨ããã¢ã³ãã«ã«ãç¶æ
価å¤æ¨å®ã¯ãåãã®ãªãçã®ä¾¡å¤é¢æ°ã®æ¨å®å¤ã¨ãªãã®ã§ãå±æçæé©è§£ã®çºè¦ãä¿è¨¼ãããã
åæ§ã«ãã¦ãTD(λ)ã§ã®ãå n ã¹ãããåç ãéã¿ä»ãå¹³ååããåç
ãç®æ¨å¤ã¨ãã¦å©ç¨ã§ãããï¼ï¼
ãã®ã¨ãããã©ã¡ã¼ã¿ã®å¦ç¿ã®æ´æ°å¼ã¯ã以ä¸ã®ããã«ãªãã
â» ãã®ææ¥éä¸æ³ã«åºã¥ã TD(λ)ã§ã®ç¶æ
価å¤æ¨å®ã¯ãï¼ã¢ã³ãã«ã«ãæ³ã¨ã¯ç°ãªãï¼åãã®ãªãçã®ä¾¡å¤é¢æ°ã®æ¨å®å¤ã¨ãªããªãã®ã§ãå±æçæé©è§£ã®çºè¦ãä¿è¨¼ãããªãã
â» ä½ããç¹å¥ãªã±ã¼ã¹ã«ããã¦ããã®å±æçæé©è§£ã¨ã¯ç°ãªãé¢ã§ã®æ§è½ä¿è¨¼ãå¾ãããããã®æå³ã§ãããã®TD(λ)ã®ãããªãã¼ã¹ãã©ããææ³ã¯ãéè¦ãªãã®ã¨ãªããï¼è©³ç´°ã¯å¾è¿°ï¼
ããã§ããã®ææ¥éä¸æ³ã«åºã¥ã TD(λ)ã§ã®ç¶æ
価å¤æ¨å®ã¯ãæéã¹ããã tât+1ât+2 æ¹åã§æ´æ°ãããå¼ã§ãããåæ¹è¦³æ¸¬çãªè¦æ¹ã®å¼ã«ãªã£ã¦ããããå
ã«è¦ãããã«ããããå¾æ¹è¦³æ¸¬çè¦æ¹ã§æ¸ãæãããã¨ãåºæ¥ããå³ã¡ãææ¥éä¸æ³ã«åºã¥ã TD(λ) ã®å¾æ¹è¦³æ¸¬çè¦æ¹ã¯ã以ä¸ã®æ´æ°å¼ã§ä¸ããããã
â ç·å½¢é¢æ°ã§ã®ä¾¡å¤é¢æ°ã®è¿ä¼¼ï¼ç·å½¢ææ³ï¼
ç·å½¢ææ³ã¯ãé¢æ°è¿ä¼¼å¨ ããç¹å¾´ç©ºé å
ã§ã®ãã©ã¡ã¼ã¿ ã«é¢ãã¦ã®ç·å½¢é¢æ°ã§è¡¨ç¾ããææ³ã§ããã
â» ç¹å¾´ç©ºé å
ã§ãã©ã¡ã¼ã¿ ã«å¯¾ãã¦ç·å½¢ãªã®ã§ãã£ã¦ãåã«ç¶æ
価å¤ç©ºé SâA ã§ã®ç·å½¢é¢æ°ã§ã¯ãªããã¨ã«æ³¨æã
ãã詳細ã«ã¯ãé¢æ°è¿ä¼¼å¨ããç¹å¾´ååå¾ã®ãã¯ãã« ã¨ãã©ã¡ã¼ã¿ ã¨ã®ç·å½¢çµåã§è¡¨ç¾ããã
â» ãã®ç¹å¾´ååå¾ã®ãã¯ãã«ï¼ï¼ç¹å¾´ãã¯ãã«ï¼ ã¯ãç¹å¾´ç©ºé ãå¼µãåºåºãã¯ãã«ã«ãªãã
次ã«ããã®ãããªãã©ã¡ã¼ã¿ã«é¢ãã¦ã®ç·å½¢é¢æ°ã§è¡¨ç¾ãããé¢æ°è¿ä¼¼å¨ã«ãææ¥éä¸æ³ãé©ç¨ãããã¨ãèãããå³ã¡ã
å¾ã£ã¦ãææ¥éä¸æ³ã«ãããã©ã¡ã¼ã¿ã®æ´æ°å¼
ã¯ãç¹å¾´ãã¯ãã«ãç¨ããã以ä¸ã®ãããªç°¡åãªå½¢ã¸ã¨å¸°çãããã
æ´ã«ããã®ç¹å¾´ç©ºéå
ã§ã®ãã©ã¡ã¼ã¿ ã«é¢ãã¦ã®ç·å½¢é¢æ° ã¯ãç·å½¢ãªã®ã§ãå±æçæé©è§£ ã¯ä¸æã«å®ã¾ããããæ
ã«å¤§åçæé©è§£ã¨ãªãã
å¾ã£ã¦ãææ¥éä¸æ³ã®ããã«å±æçæé©è§£ã®åå¨ããã®è¿åã¸ã®åæãä¿è¨¼ããææ³ãªãã°ããã®å±æçæé©è§£ã®åææ§ããèªåçã«å¤§åçæé©è§£ã¸ã®åæãä¿è¨¼ãããã¨ã«ãªãã
ããã§ããã®ç¹å¾´åå ã®å
·ä½çãªå½¢ã¨ãã¦ã¯ãä¾ãã°ã以ä¸ã®ãããªRBFã«ã¼ãã«ãç¨ããããã
â ææ¥éä¸åSarsaï¼é¢æ°è¿ä¼¼ææ³ã®Sarsaã¸ã®é©ç¨ï¼
è¡å価å¤é¢æ° Q(s,a) ã«å¯¾ãã¦ã®ãææ¥éä¸æ³ã«ãããã©ã¡ã¼ã¿ã¼ã®æ´æ°å¼ã¯ãç¶æ
価å¤é¢æ°ã®ã¨ãã¨åæ§ã«ãã¦ã以ä¸ã®ããã«ãªãã
ãã®æ´æ°å¼ã¯ãåæ¹è¦³æ¸¬çè¦æ¹ã®å¼ã«ãªã£ã¦ããããå¾æ¹è¦³æ¸¬çè¦æ¹ã®å¼ã«æ¸ãæããã¨ãç¶æ
価å¤é¢æ°ã®ã¨ãã¨åæ§ã«ãã¦ã
ãã®å¾æ¹è¦³æ¸¬çè¦æ¹ã®ãã©ã¡ã¼ã¿ã¼ã®æ´æ°å¼ã¯ãSarsa(λ) ã«å¯¾ãã¦ãé¢æ°è¿ä¼¼ã¨ææ¥éä¸æ³ææ³ãé©ç¨ãããã®ã«ãªã£ã¦ããã®ã§ãææ¥éä¸å Sarsa(λ) ã¨ãããï¼ç·å½¢ææ³ãé©ç¨ãããã®ã¯ãç·å½¢ææ¥éä¸åSarsaï¼
â» å³å¯ã«ã¯ãææ¥éä¸å Sarsa(λ) ã®ä¾¡å¤æ¨å®ããã»ã¹é¨åã«ç¸å½ã
å¶å¾¡ææ³ã¨ãã¦ã®å®å
¨ãªææ¥éä¸å Sarsa(λ) ã¢ã«ã´ãªãºã ãå¾ãããã«ã¯ããã®ä¾¡å¤æ¨å®ã®ããã»ã¹ã ãã§ãªããæ¹çè©ä¾¡ã»æ¹çæ¹åã®ããã»ã¹ãç¹ãè¾¼ãå¿
è¦ãããã
ããããªããããã®ãããªä½æ¥ã¯ãè¡åéå A ãé£ç¶ç©ºéãæãã¯ãé¢æ£çã§ãã£ã¦ãè¦ç´ æ°ï¼ï¼è¡åæ°ï¼ãè¨å¤§ãªé¢æ£éåã§ããå ´åã¯ãå°é£ã¨ãªããï¼ç¾æç¹ã§ã¯ãã¯ã£ããã¨ãã解æ³ã¯ææ¡ããã¦ããªãï¼ï¼
ä¸æ¹ã§ãè¡åéå A ãé¢æ£çã§ãè¦ç´ æ°ï¼ï¼è¡åæ°ï¼ãããã»ã©å¤§ãããªãå ´åã«ããã¦ã¯ãå¾æ¥ã®ãã¼ãã«æ¹å¼ã§ã®Sarsa(λ)ã¨åãæ¹çè©ä¾¡ã»æ¹çæ¹åã®ããã»ã¹ãå©ç¨ã§ããã
ãããã®äºé
ãã¾ã¨ããã¨ãã¾ããææ¥éä¸å Sarsa(λ) 価å¤æ¨å®ã¢ã«ã´ãªãºã ã¯ã以ä¸ã®ãããªã¢ã«ã´ãªãºã ã¨ãªãã
â æ¹çå¾é ã«åºã¥ãå¼·åå¦ç¿ææ³
ããã¾ã§ã¿ã¦ããå種強åå¦ç¿ææ³ã¯ãè¡å価å¤é¢æ°ãç¶æ
価å¤é¢æ°ã®å¦ç¿ãéãã¦ãã¨ã¼ã¸ã§ã³ãã®æé©ãªè¡åæ¹ç Ï(s,a) ãæ±ãã¦ããã
ä¸æ¹ããã®é
ç®ã§æ±ãæ¹çå¾é
æ³ãªã©ã®æ¹çå¾é
ã«åºã¥ãã¢ã«ã´ãªãºã ã¯ã価å¤é¢æ°ãçµç±ãããã¨ãªãã«ãç´æ¥ã¨ã¼ã¸ã§ã³ãã®è¡åæ¹ç Ï(s,a) ãæ±ããææ³ã§ããã
ãã®éãè¡åæ¹çã¯ããããã©ã¡ã¼ã¿ã¼ãã¯ã㫠θ ã§å®ã¾ã確çã¢ãã« ã§è¡¨ç¾ããããããã©ã¡ã¼ã¿ã¼ θ ã«é¢ãã¦æé©åãããã¨ã§ãæé©ãªè¡åæ¹çãæ±ããã
å¼·åå¦ç¿ã«ããã¦ã¨ã¼ã¸ã§ã³ãã®ç®çã¯ããã®æå¾
åçãæ大åãããã¨ã§ãããããã®ãã¨ã¯ãæ¹çå¾é
ã«åºã¥ãå¼·åå¦ç¿ã®ã¢ã«ã´ãªãºã ã«ããã¦ã¯ãä¸å³ã®ããã«ãæå¾
åçï¼ï¼å²å¼å©å¾ã®æå¾
å¤ï¼ãç®çé¢æ° ã¨ãã¦ããã®ç®çé¢æ° ãæ大åããããã«è¡åæ¹ç ã®ãã©ã¡ã¼ã¿ã¼ θ ãæ±ãããã¨ã«ãªãã
ããã§ä¸è¬çã«ããã®æ¹çã¢ãã« ã§ã®ãã©ã¡ã¼ã¿ã¼ θ ã®å¦ç¿ã¯ãå¾é
æ³ãªã©ã®å¾é
ãã¼ã¹ã®ææ³ã§è¡ãã
å³ã¡ã
ã§ç¹°ãè¿ãæ´æ°ãã¦ãããã¨ã§ãæé©è§£ãæ±ãã¦ãããï¼å¤ãã®å ´åãå±æçæé©è§£ï¼
ãã®æ¹çå¾é
ã«ããå¼·åå¦ç¿ã¢ã«ã´ãªãºã ã¯ã大ããåãã¦ä»¥ä¸ã®ãããªï¼ã¤ã®æé ã«ã¾ã¨ããããã
â è¡åæ¹ç ã«ããè¡å
â¡ è¡åæ¹ç ã®è©ä¾¡
⢠è¡åæ¹ç ã®æ´æ°
è¡åæ¹ç ã«ããè¡å
æ¹çå¾é ã«ããå¼·åå¦ç¿ææ³ã§ã¯ãã¨ã¼ã¸ã§ã³ãã®è¡åæ¹ç ã確çé¢æ°ã§å®ããã
ã¾ãã ã¯ãã©ã¡ã¼ã¿ã¼ θ ã«é¢ãã¦å¾®åå¯è½ãªé¢æ°ã¨ãããï¼å¾é è¨ç®å¯è½ã¨ããããï¼
ãã®ãããªé¢æ°ã¯ãå ·ä½çã«ã¯ã以ä¸ã®ãããªé¢æ°ã¨ãªããç¶æ 空é S ã¨è¡å空é A ãå ±ã«é¢æ£çã§ããå ´å
ç¶æ 空é S ãé£ç¶ã§ãè¡å空é A ãé¢æ£çã§ããå ´å
ãã®å ´åãç¶æ 空éã®ç¶æ æ°ãæ°ãããªããããåç´ã«ã½ããããã¯ã¹é¢æ°ã§ç¢ºçã表ç¾ã§ããªãã
å¾ã£ã¦ãç¹å¾´ååãä»ãã¦ããã½ããããã¯ã¹é¢æ°ã§ç¢ºçã表ç¾ãããå³ã¡ã
è¡åæ¹ç ã®è©ä¾¡
å¾é æ¹çã«ããå¼·åå¦ç¿ææ³ã§ã¯ããã©ã¡ã¼ã¿ã¼ θ ãæ´æ°ãããã¨ã§ãããããè¡åæ¹ç ãå¾ã¦ãããããã®éã«ããã©ã¡ã¼ã¿ã¼ θ ã«ãã£ã¦å®ã¾ãè¡åæ¹ç ã®è¯ããè©ä¾¡ããææ¨ãå¿ è¦ã¨ãªãã
ãã®ææ¨ã¨ãªãã®ããï¼ã¨ã¼ã¸ã§ã³ãã®ç®çã§ããï¼å°æ¥ã«æ¸¡ã£ã¦ã®æå¾ åçï¼ï¼å²å¼å©å¾ã®æå¾ å¤ï¼ã§ãããï¼â» ããã§ãæå¾ å¤ãã¨ãã®ã¯ãè¡åæ¹çã¯ç¢ºçé¢æ°ã§è¡¨ç¾ãããããã«ãå¾ãããåçããããããã¤ããã§ãããï¼
å¼ã§æ¸ãã¨ã
è¡åæ¹ç ã®æ´æ°
è¡åæ¹ç ã®è©ä¾¡ãç®çé¢æ° ã¨ãã¦å®ç¾©ããã®ã§ããã®ç®çé¢æ° ãæ大åããããã«è¡åæ¹çã®ãã©ã¡ã¼ã¿ã¼ θ ãæ±ããã°è¯ããã¨ã«ãªãã
ä¸è¬çã«ã¯ããã®ãããªç®çé¢æ° ãæ大åãããã©ã¡ã¼ã¿ã¼ θ ã解æçã«è§£ããã¨ã¯å°é£ã§ãããããå¾é æ³ã«ããæ°å¤è§£æçææ³ã使ç¨ãããã
ããæç¹ t ã§ã®å¾é æ³ã«ããæ´æ°å¼ã¯ã以ä¸ã®ããã«ãªãã
ããã§ãæ¹çå¾é å®çãããç®çé¢æ°ã®å¾é ã¯ãè¡å価å¤é¢æ° Q(s,a) ãç¨ãã¦ã以ä¸ã®ããã«è¡¨ç¾ã§ãããï¼è©³ç´°è¨ç®ç¥ï¼
æ´ã«ã対æ°ã®å¾®åã®æ§è³ªãå©ç¨ãã¦å¤å½¢ããã¨ã
- åèãµã¤ã
â REINFORCE
å
ã®å¾é
ã®å¼
ã¯ãå®éã«ã¯ã解æçã«è§£ããã¨ã¯åºæ¥ãªããããè¡åæ¹ç ã«å¾ã£ã¦ãå®éã«å¾ããããµã³ããªãç¨ãã¦ããããã¢ã³ãã«ã«ãè¿ä¼¼ãããã¨ãèããã
ä»ãã¨ã¼ã¸ã§ã³ããè¡åæ¹çã«å¾ã£ã¦ãã¹ãããæ°ã t=0~T ã®è¡åããMåã®ã¨ãã½ã¼ãæ°è¡ã£ãã¨ããã¨ããã®å¾é
ã®å¼ã¯ã以ä¸ã®ããã«ã¢ã³ãã«ã«ãè¿ä¼¼åºæ¥ãã
ããã§ããã®è¿ä¼¼å¼ã«ãããè¡å価å¤é¢æ° ã¯ãæªç¥ã§ããããããããæ´ã«è¿ä¼¼ãããã¨ãèããã
REINFORCE ã¯ããã®å¼ã«ãããè¡å価å¤é¢æ°ã®æãç°¡åãªè¿ä¼¼ã¨ãã¦ãè¡å価å¤é¢æ° ãå³æå ±é
¬ã§è¿ä¼¼ããã¢ã«ã´ãªãºã ã§ããã
å³ã¡ã
REINFORCEã¢ã«ã´ãªãºã ã§ã¯ããã®å¾é
æ¨å®ã®è¿ä¼¼æ¹æ³ã«å ãã¦ãæ´ã«ããã¼ã¹ã©ã¤ã³ã¨ããææ³ãå°å
¥ãã¦ãããããã¯ããã¼ã¹ã©ã¤ã³ã¨ãããã¤ã¢ã¹å®æ° b ãå¾é
ã®æ¨å®å¼ã«è¿½å ãã¦ã
ã¨ãã¦ããæå¾
å¤èªä½ã«å¤åã¯çããªãããããã®é¢ä¿å¼ã¯æãç«ã¤ããåæ£å¤ã«ã¯å½±é¿ãåã¼ãã¨ãããã¨ãå©ç¨ããææ³ã§ããã
ãã®æ§è³ªãå©ç¨ãã¦ãå¾é
ã®æ¨å®åæ£ãå°ãããªãããã«ãã¤ã¢ã¹é
b ãè¨å®ãããã¨ã§ãå¾é
ã®æ¨å®ç²¾åº¦ãé«ãããã¨ãåºæ¥ãã
ä¸è¬çã«ããã®ãããªåæ£å¤ãå°ãããããã¤ã¢ã¹é
b ã¨ãã¦ã¯ããã®è¨ç®ã®å®¹æããããå¹³åå ±é
¬ãããå©ç¨ãããã
å³ã¡ã
å¾ã£ã¦ãREINFORCE ã«ãããå¾é
ã®æ¨å®å¼ã¯ã以ä¸ã®ããã«ãªãã
ããã¦ããã®å¾é
ã®æ¨å®å¼ã§ãå¾é
æ³ã«å¾ã£ã¦ããã©ã¡ã¼ã¿ã¼ θ ãé次æ´æ°ãã¦ãããã¨ã«ãªãã
å³ã¡ã
â æ¹çå¾é æ³
å
ã«è¦ãããã«ãå¾é
ã®æ¨å®ã«ãã¼ã¹ã©ã¤ã³ b ãå°å
¥ãã¦ããã®æå¾
å¤ã®å¼
ã¯æãç«ã¤ãããã®ãããªãã¼ã¹ã©ã¤ã³ b ã®ãã¡ãè¡å a ã«ä¾åãããç¶æ
s ã®ã¿ã«ä¾åãããã¼ã¹ã©ã¤ã³ ã«å¯¾ãã¦ãã
ã®é¢ä¿å¼ã¯æãç«ã¤ã
ããã§ããã®ç¶æ
s ã®ã¿ã«ä¾åããé¢æ°ã§ãããã¼ã¹ã©ã¤ã³ ã¨ãã¦ãç¶æ
価å¤é¢æ° ãæ¡ç¨ããã¨ãä¸å¼ã¯ã
ã¨ãªããã¢ããã³ãã¼ã¸é¢æ° ã§ã®æ¨å®å¼ã«ç½®ãæããããã
ãã®ããã«ãã¦ãã¢ããã³ãã¼ã¸é¢æ°ã®æ¨å®å¤ããæ±ããå¾é
ãããå¾é
æ³ã«å¾ã£ã¦ããã©ã¡ã¼ã¿ãæ´æ°ãã¦ããææ³ããæ¹çå¾é
æ³ã¨ããã
å¼ã§æ¸ãã¨ã
â 深層å¦ç¿ã®æ§é ãåãè¾¼ãã å¼·åå¦ç¿ææ³ï¼æ·±å±¤å¼·åå¦ç¿ææ³ï¼
â å¤å±¤ãã¼ã»ãããã³ï¼MLPï¼ã«ãã価å¤é¢æ°ã®è¿ä¼¼
å
ã®é¢æ°è¿ä¼¼ã®ææ³ã§ã¯ãçã®ä¾¡å¤é¢æ°ã®é¢æ°è¿ä¼¼ãè¡ãé¢æ°ãã以ä¸ã®ãããªæéã¹ããã t ã«ä¾åãããã©ã¡ã¼ã¿ ã§è¡¨ç¾ãããé¢æ°ã¨ããã
èªç¶ãªæµãã¨ãããã®ãã©ã¡ã¼ã¿ã¼ ãããã¥ã¼ã©ã«ãããã¯ã¼ã¯ã«ãããå層éã®éã¿ã¨ãã¦æ¡ç¨ãããã¨ã§ããã¥ã¼ã©ã«ãããã¯ã¼ã¯ã§è¡¨ç¾ããé¢æ°è¿ä¼¼å¨ãæ¡ç¨ãããã¨ãèããããã
ä¸å³ã¯ãæãåºæ¬çãªãã¥ã¼ã©ã«ãããã¯ã¼ã¯ã¨ãã¦ã®å¤å±¤ãã¼ã»ãããã³ãã価å¤é¢æ°ã®é¢æ°è¿ä¼¼å¨ã¨ãã¦æ¡ç¨ããã¨ãã®å³ã§ããã
ããã§ãä¸å³ã®ããã«ãMLPã«å¼·åå¦ç¿ã«ãããé¢æ°è¿ä¼¼ææ³ãé©ç¨ããéã«ã¯ãå¤å±¤ãã¼ã»ãããã³ã¸ã®å
¥åä¿¡å·ã»æ師信å·ãåã³ãå¤å±¤ãã¼ã»ãããã³ããã®åºåä¿¡å·ã¯ã以ä¸ã®ãããªè¨å®ã¨ãªãã
å¤å±¤ãã¼ã»ãããã³ï¼MLPï¼ã§ã¯ããã®æ師信å·ã¨åºåä¿¡å·ã¨ã®èª¤å·®ããçããæ失é¢æ°ã®å¾é
ããéä¼æ¬ããã¦ãå層éã®éã¿ãé次æ´æ°ãããï¼ï¼èª¤å·®éä¼æ¬æ³ï¼ãã¨ã«ãªããããã®ãã¨ãå¼·åå¦ç¿ã«ãããé¢æ°è¿ä¼¼ã«é©ç¨ããå ´åã«ã©ããªãã®ããã以ä¸ã§é ã追ã£ã¦è¦ã¦ããã
ã¾ããMLPãå¼·åå¦ç¿ã«ãããé¢æ°è¿ä¼¼ã«é©ç¨ããå ´åã«ããã¦ã¯ãæ師信å·ã¨åºåä¿¡å·ã¨ã®èª¤å·®ã¯ã以ä¸ã®ãããªQå¦ç¿ã§ã®TD誤差ã§è¡¨ç¾ãããã
å¼·åå¦ç¿ã«ãããé¢æ°è¿ä¼¼ã§ã¯ãä¸è¬çã«ãæ失é¢æ°ã¨ãã¦ãæå°ï¼ä¹èª¤å·®ï¼MSEï¼ãèãããããæå°ï¼â»åºæ¥ãã°å¤§åçæé©è§£ã®æå³ã§ã®æå°ã ããä¸è¬çã«ã¯ãå±æçæé©è§£ã®æå³ã§ã®æå°ã«ãªããã¨ãå¤ãï¼ã«ãªãããã«ããã©ã¡ã¼ã¿ ã®å¦ç¿ãè¡ã£ãã
ãã¥ã¼ã©ã«ãããã¯ã¼ã¯ã«ããé¢æ°è¿ä¼¼ã§ãåæ§ã«ãã¦ãå
ã®TD誤差ããä½ãããæå°ï¼ä¹èª¤å·®ãæ失é¢æ°ã¨ãã¦æ¡ç¨ããã
å³ã¡ã
å
ã«è¦ãé¢æ°è¿ä¼¼ã®ææ³ã§ã¯ããã®ãã©ã¡ã¼ã¿ã®å¦ç¿è¦åã§ãããã©ã¡ã¼ã¿ã®æ´æ°å¼ããææ¥éä¸æ³ã«ãã£ã¦å°ããã
ãã¥ã¼ã©ã«ãããã¯ã¼ã¯ã«ããé¢æ°è¿ä¼¼ã§ãåæ§ã«ãã¦ãææ¥éä¸æ³ã«ãã£ã¦åºå層ã¸ã®éã¿ï¼ï¼ãã©ã¡ã¼ã¿ã¼ï¼ãæ´æ°ããã
ããã§ããã®æ失é¢æ°ã®å¾é
ã¯ã
ã¨æ¸ããã®ã§ãææ¥éä¸æ³ã«ããåºå層ã§ã®éã¿ã®æ´æ°å¼ã¯ã以ä¸ã®ããã«æ¸ãæããããã
ããã¦ããã®ææ¥éä¸æ³ã«ããåºå層ã§ã®éã¿ã®æ´æ°ã¯ã誤差éä¼æ¬ã§ãåºå層å´ããå
¥å層å´ã«åãã£ã¦é 次åæ ããã¦ãããããã«ãããåºåä¿¡å·ã«æ師信å·ï¼ï¼TD誤差ï¼ãä¸ããã ãã§ãå段ã®å±¤ãå«ãããã¹ã¦ã®å±¤ã®éã¿ãæ´æ°ãããã¨ãåºæ¥ãã
⻠誤差éä¼æ¬ã§ã¯ãå¾é
ï¼ï¼ææ¥éä¸æ³ï¼ã«ããéã¿ãã¯ãã«ã®æ´æ°ãéæ¹åã«ä¼æ¬ãããããã«ãæ失é¢æ°ã®å¾é
ãããããé£éçã®è¨ç®ã§æ±ãã¦ããã
â» ãã®é£éçã§ã®å¾®åè¨ç®ãå¹çããè¨ç®ãã¦ããããã®ãæ°å¤è§£æçãªææ³ã¨ãã¦ãèªåå¾®åã使ãããã
â Neural Fitted Q Iterationï¼MLPã«ããé¢æ°è¿ä¼¼ã§å¦ç¿ãå®å®åãããããã®å·¥å¤«ï¼
å
ã®MLPã«ããé¢æ°è¿ä¼¼ã§ã¯ãå層éã®é㿠θ ãããããå¥ã®å¤ã®ãã©ã¡ã¼ã¿ã¼ã§ãããæ
ã«ããã©ã¡ã¼ã¿ã¼æ°ãå¤ãã¦ããªããªãå¦ç¿ãåæããªãã¨ããåé¡ãåå¨ããã
ããã§ç´¹ä»ãã Neural Fitted Q Iteration ã¯ãå
ã®MLPã«ããé¢æ°è¿ä¼¼ã«ããã¦ãå¦ç¿ãå®å®åãããããã«ä»¥ä¸ã®ãããªå·¥å¤«ã»ãã¯ããã¯ãå°å
¥ããææ³ã§ããã
Experience Replayï¼çµé¨åçï¼ï¼
MLP ã«å ¥åããç¶æ ä¿¡å·ã¯ãä½ãèæ ®ããªãå ´åãããã¨ãã½ã¼ãã«ãããéå§ç¶æ ããçµäºç¶æ ã«åãã£ã¦ã®æç³»åãã¼ã¿ï¼ï¼ç¶æ ã®å±¥æ´ï¼ã¨ãªããããã®ãããªæç³»åãã¼ã¿ã¯ãä¸è¬çã«ãæç³»åç±æ¥ã®ç¸é¢ã®å½±é¿ãåãã¦ãã¾ã£ã¦ãããäºãã«ç¬ç«ãªãã¼ã¿ [i.i.d] ã§ãªããã¨ã«ãªãã
ãã®åé¡ãåé¿ããããã«ããã®ãããªæç³»åãã¼ã¿ã§ã¯ãªãã¦ãè¤æ°ã®ã¨ãã½ã¼ãã«ãããæ§ã ãªæéã¹ããã t ã§ã®ãã¼ã¿ããä¸é£ã®å¦ç¿ç¨ãã¼ã¿ã¨ãã¦ä½¿ç¨ããã
ããã«ãããå¦ç¿ãã¼ã¿ã®åããé²ããå¦ç¿ãå®å®åããããã¨ãåºæ¥ãã
ãã®ãããªå¦ç¿å®å®åã®ããã®ãã¯ããã¯ããExperience Replay ã¨ãããNeural Fitted Q Iteration ã§ã¯ããã® Experience Replay ã®ãã¯ããã¯ãå©ç¨ãã¦ãå¦ç¿ãå®å®åãããããã®å·¥å¤«ãè¡ã£ã¦ããã
â» å¾è¿°ã® Deep Q-Networkï¼DQNï¼ã§ãããã® Experience Relay ã®ãã¯ããã¯ã¯ä½¿ç¨ããã¦ããããªã³ã©ã¤ã³å¦ç¿ã§ã¯ãªããããå¦ç¿ã§å¦ç¿ï¼ï¼ãã©ã¡ã¼ã¿ã¼ã®æ´æ°ï¼ãè¡ãï¼
å ã®MLPã«ããé¢æ°è¿ä¼¼ã§ã¯ã以ä¸ã®æ´æ°å¼ã«å¾ã£ã¦ãï¼åºå層ã®ï¼éã¿ãæ´æ°ï¼ï¼å¦ç¿ï¼ãã¦ããã
ãã®æ´æ°å¼ã¯ãæ°ããå¦ç¿ç¨ãã¼ã¿ (sâ²,aâ²,r) ãå±ããéã«ããã®å ´ã§éã¿ãæ´æ°ãããªã³ã©ã¤ã³å¦ç¿ã¨ãªã£ã¦ããã
ä¸è¬çãªè°è«ã¨ãã¦ããªã³ã©ã¤ã³å¦ç¿ã¯ããã®å ´ã§ç´ æ©ãå¤åã«å¯¾å¿ãã¦å¦ç¿ã§ãã代ããã«ãå¦ç¿ãå®å®åããããã¨ãããã¡ãªãããåå¨ããã
Neural Fitted Q Iteration ã§ã¯ãå ã® Experience Replay ã§çæããä¸é£ã®ãã¼ã¿ã»ããã«å¯¾ãã¦ããã®ãã¼ã¿ã»ããå ¨ä½ã§ä¸æ¬ã«å¦ç¿ãè¡ãã¨ãããããå¦ç¿ã§å¦ç¿ãè¡ãããã«ããã
ããã«ããããªã³ã©ã¤ã³å¦ç¿ã§å¦ç¿ãé²ãããããã¯ãå¦ç¿ãå®å®ãããã¨ã«ãªãã
以ä¸ã®ãããªå¦ç¿å®å®åã®ããã®ãã¯ããã¯ãèæ
®ãã Neural Fitted Q Iteration ããã¢ã«ã´ãªãºã ã¨ãã¦ã¾ã¨ããã¨ã以ä¸ã®ããã«ãªãã
â Deep Q Networkï¼DQNï¼
DQNã¯ãå
ã® MLPã«ããé¢æ°è¿ä¼¼ã Neural Fitted Q-Iteration ã«å¯¾ãã¦ãå¦ç¿ã®å®å®åã®ããã®å·¥å¤«ã¨ãã¦ã主ã«ä»¥ä¸ã®ãããªææ³ããã¯ããã¯ãå°å
¥ããææ³ã§ããã
â» DQN ã¯ãåã«ãDNNã§é¢æ°è¿ä¼¼ããã ãã®ææ³ã§ã¯ãªãããã®ãããªå¦ç¿ã®æåã»å®å®åãã¯ããã¯ãå«ãããã®ã§ãããã¨ã«æ³¨æ
Experience Replayï¼çµé¨åçï¼ï¼
å ã® Neural Fitted Q-Iteration ã¨åæ§ã«ãã¦ãããã¨ãã½ã¼ãã®ç¶æ å±¥æ´ï¼ï¼æç³»åãã¼ã¿ï¼ããè¤æ°ã¨ãã½ã¼ãã®æ§ã ãªæéã¹ãããã§ã®ãã¼ã¿ã«ã·ã£ããã«ãããã®ããå¦ç¿ç¨ãã¼ã¿ã¨ãã¦å©ç¨ããããããããå¦ç¿ï¼
å ã® Neural Fitted Q-Iteration ã§ã¯ããªã³ã©ã¤ã³å¦ç¿ã§ã¯ãªããããå¦ç¿ã§ã®éã¿æ´æ°ã¨ãããã¨ã§ãå¦ç¿ã®å®å®åãå³ã£ãããDQN ã§ã¯ããªã³ã©ã¤ã³å¦ç¿ã¨ãããå¦ç¿ã®æè¾¼æ¡ã§ãããããããå¦ç¿ã«ãããå¦ç¿ãå®å®åããããªããã¤ããã®å ´ã§ã®é次å¦ç¿ãå¯è½ã«ãã¦ãããå ±é ¬ã® clippingï¼
ã¨ã¼ã¸ã§ã³ãã®å ±é ¬ r ã®å¤ããæ£è¦åå¦çã¨ãã¦ãã¯ãªããã³ã°ããå¤ã«ããã
å³ã¡ã+10,-5 ã®ãããªä¾¡å¤ã«å¿ãã¦éã¿ä»ããå¤ã§ã¯ãªããæ£ã®ä¾¡å¤ãªãï¼ï¼ãè² ã®ä¾¡å¤ãªãï¼ï¼ãã¼ã価å¤ãªãã°ï¼ã«è¨å®ãããTarget network ã®å°å ¥ï¼
å ã®MLPã«ããé¢æ°è¿ä¼¼ã Neural Fitted Q Iteration ã§ã¯ãè¡å価å¤é¢æ°ã®é¢æ°è¿ä¼¼å¨ã®ç®æ¨å¤ã®æ´æ°å¼ã¯ã
ã¨ãªã£ã¦ããããè¡å価å¤é¢æ°ã®é¢æ°è¿ä¼¼å¤ 㨠ã¨ã¯ãã¨ãã½ã¼ãã®ï¼ã¹ãããé tât+1 ã§ã®è¡å価å¤é¢æ°ã§ãããäºãã«æç³»åã«ç¸é¢ã®ãããã®ã¨ãªã£ã¦ããã®ã§ããã®æ´æ°å¼ã«ããããæ師信å·ã¨åºåä¿¡å·ã¨ã«ãæç³»åãªç¸é¢ãåºæ¥ã¦ãã¾ãï¼ä¸å³åèï¼ã
å¾ã£ã¦ããã®æ´æ°å¼ã§è¡å価å¤é¢æ°ãæ´æ°ããã¨ãæ師信å·ãã®ãã®ã®å¤ãå¤åãã¦ãã¾ããæ¬æ¥ã®æ師信å·ã¨ãã¦ã®å½¹å²ãæããã¦ããªãã¨ããåé¡ãåå¨ããã
ãã®åé¡ã解決ããããã®å¯¾çã¨ãã¦ãDQNã§ã¯ãå ã®æ´æ°å¼ã«ããã¦ãååæéã¹ããã t ã§ã®é㿠θ ã§ã®è¡å価å¤é¢æ° ã®ä»£ããã«ãå¤ãæéã¹ãããã§ã®éã¿ ã§åºå®ãããDNNï¼ï¼Fixed Target Network ã¨ããï¼ã«ããé¢æ°è¿ä¼¼å¨ ã使ç¨ããã
ããã¦ãä¸å®ã®å¨æã§å¤ãéã¿ ã¨ææ°ã®éã¿ãåæ θ ããããã«ããã
å³ã¡ã以ä¸ã®ãããªæ´æ°å¼ã§ãé¢æ°è¿ä¼¼å¨ãæ´æ°ããã
ããã«ãããéã¿ãæ´æ°ããã¦ããæ師信å·ã®å¤ã¯æ´æ°ããããæ師信å·ã¨ãã¦ã®æ¬æ¥ã®å½¹å²ãæãããã¨ã«ãªããæ失é¢æ°ã¨ãã¦ãHuber é¢æ°ãå©ç¨ï¼
å ã®MLPã«ããé¢æ°è¿ä¼¼ã Neural Fitted Q Iteration ã§ã¯ãæ失é¢æ°ã¨ãã¦ãï¼æ師信å·ã¨åºåä¿¡å·ã¨ã®ï¼æå°ï¼ä¹èª¤å·®ãæ¡ç¨ãã¦ãããããã®æå°ï¼ä¹èª¤å·®ã§ã¯ãä¸å³ã®ããã«ã誤差å¤ï¼ï¼æ師信å·ã¼åºåä¿¡å·ï¼ã大ããé åã§ã¯ãæ失é¢æ°å¤ã®å¾é å¤ã大ãããªãããã¦ãå¦ç¿ã®ä¸å®å®åãã¦ãã¾ãã®ã§ãDQNã§ã¯ããã®ãããªå¾é ççºã®å¯¾çã¨ãã¦ãHuber é¢æ°ãæ失é¢æ°ã¨ãã¦æ¡ç¨ããã
ãã® Huber é¢æ°ã¯ãæ失é¢æ°ã®å¤ãããå¤ãè¶ ããã¨ãå¾é ãä¸å®å¤ã§ã¯ãªããã³ã°ãããããã«ãå¾é ççºãé²ããã¨ãåºæ¥ããï¼ä¸å³åç §ï¼CNNã®å°å ¥ï¼
DQNã§ã¯ãè¡å価å¤é¢æ°ã®é¢æ°è¿ä¼¼å¨ã¨ãã¦ãMLP ã§ã¯ãªããä¸å³ã®ãããªCNNã®æ§é ã使ç¨ããã
â»DQN ã§æ¡ç¨ããã¦ãã CNN ã®ãããã¯ã¼ã¯æ§æã§ã¯ãä¸è¬ç㪠CNN ã®ãããã¯ã¼ã¯æ§æã§è¦ãããããã«ãç³ã¿è¾¼ã¿å±¤ã®å¾ã®ãã¼ãªã³ã°å±¤ã¯æ§æããã¦ããªããã¨ã«æ³¨æã
â»ãã®CNNã§ã¯ãç³ã¿è¾¼ã¿å±¤ã§ã®ï¼ãã大ããã¹ãã©ã¤ãã§ããã¦ã³ãµã³ããªã³ã°ãã¦ãããããã§ãã¼ãªã³ã°å¦çã®ä»£ç¨ããã¦ããã¨èããããã
ãã® CNN ã®å°å ¥ã«ãããããã¾ã§ã®å¼·åå¦ç¿ææ³ã®ããã«ãå ¥åãã¼ã¿ã¨ãã¦ããã¹ï¼ããã¹ï¼ãã»ã»ã»ã¨ãã£ãåå¼·åå¦ç¿ã¿ã¹ã¯ï¼è¿·è·¯æ¢ç´¢åé¡ãªã©ï¼åºæã®ã¨ã¼ã¸ã§ã³ãã®ç¶æ ã§ã¯ãªããå¼·åå¦ç¿ç°å¢ã®ç»é¢ã®ç»åãã¼ã¿ãã®ãã®ãå ¥åãã¼ã¿ã¨ãããã¨ãåºæ¥ããæ´ã«ã¯ãCNNã®éã¿å ±æã®æ§é ã«ãããMLPã§é¢æ°è¿ä¼¼ãããããã©ã¡ã¼ã¿ã¼æ°ãæ¸ãããã¨ã«ç¹«ãã£ã¦ãçµæã¨ãã¦å¦ç¿ã容æã«ãããã¨ãåºæ¥ãã
ããã§ããã® CNN ã«å ¥åããå ¥åç»åã¯ããã¾ãç¹å¾´éãæããããã«ãã¾ã以ä¸ã®ãããªåå¦çãè¡ãã
ï¼åå¦çï¼ï¼å¦ç¿ç°å¢ã®ç»åãã¼ã¿ãã81â81 pixel ã®ç»åãã¼ã¿ã«ãªãµã¤ãº
ï¼åå¦çï¼ï¼RGBæ å ±ãæã¤ç»åãã¼ã¿ã¯ãã°ã¬ã¼ã¹ã±ã¼ã¹ã«å¤æ
ï¼åå¦çï¼ï¼ç»é¢ä¸ã®ãã©ãããæãããããåå¾ã®ãã¬ã¼ã ã®æ大å¤ãåããï¼è©³ç´°ã¯ãå¾è¿°ã® Max and Skipï¼ããã¦ããã®åå¦çãè¡ã£ãå¼·åå¦ç¿ç°å¢ã®ç´è¿ã®é£ç¶ï¼ãã¬ã¼ã ç»åãã¼ã¿ããCNNã®å ¥å層ã«å ¥åããã
â» é£ç¶ããï¼ãã¬ã¼ã åã®ç»åãå ¥åããçç±ã®ï¼ã¤ã¯ãã¨ã¼ã¸ã§ã³ãã®ç§»åãç¹å¾´éã¨ãã¦æããããã§ãããï¼ï¼ãã¬ã¼ã ã®ç»åã ãã§ã¯ã¨ã¼ã¸ã§ã³ãã®ä½ç½®ããåãããªãããéå»ï¼ãã¬ã¼ã ããã°ã¨ã¼ã¸ã§ã³ãã®ç§»åé度ãåãããéå»ï¼ãã¬ã¼ã ããã°å é度ãåããããï¼ãã®ä»ã®å¦ç¿ã®å®å®åã®ããã®å·¥å¤«
- No-Operation
å¼·åå¦ç¿ç°å¢ã®ãªã»ããç´å¾ã®ç¹å®ã®éå§ç¶æ ã§å¤§ããä¾åãã¦å¦ç¿ãé²ã¿ãçµæã¨ãã¦éå¦ç¿ãèµ·ããã¦ãã¾ããã¨ãé²ãããã«ãå¼·åå¦ç¿ç°å¢ã®ãªã»ããç´å¾ãæ°ã¹ãããéã¯ä½ãå¦ç¿ããªãããã»ã¹ãå®æ½ããã - Episodic Life
ä¾ãã°ãatari ã® Breakoutï¼ãããã¯å´©ãã²ã¼ã ï¼ã§ã¯ï¼æ©ã®ã©ã¤ããããã®ã§ãï¼å失æã§ã²ã¼ã çµäºã¨ãªããããã®æ®æ©ã§ã¯å¦ç¿ãé¢åã¨ãªãã®ã§ãï¼å失æã§ã²ã¼ã çµäºã«è¨å®ãããä½ããï¼å失ææ¯ã«å®å ¨ã«ãªã»ããããã¨ãåæç¶æ ã°ããå¦ç¿ãã¦ãã¾ããéå¦ç¿ãã¦ãã¾ããããã®ã§ãï¼å失æã§ã®ãªã»ããã§ã¯ãå´©ãããããã¯ã®ç¶æ ã¯ãã®ã¾ã¾ã«ãã¦ããã¦ãï¼å失æã§ã®ãªã»ããã§ã¯ãå´©ãããããã¯ã®ç¶æ ããªã»ããããå®å ¨ãªãªã»ããã¨ããã - Max and Skip
atari ã® Breakout 㯠60FPS ã§åä½ãããããã®éãã§åããã¨æ©ãããã®ã§ãï¼ãã¬ã¼ã åä½ã§è¡åãå¤æãããï¼ãã¬ã¼ã é£ç¶ã§åãè¡åãè¡ãããã«ãããããã«ããã60FPS â 15 FPS ã¨ãªããä½ããatari ã®ã²ã¼ã ã«ã¯ãå¥æ°ãã¬ã¼ã ã¨å¶æ°ãã¬ã¼ã ã§ç¾ããç»åãç°ãªãã²ã¼ã ãããããã«ãç»é¢ä¸ã®ãã©ãããæããæå³ã§ãæå¾ã®3ã4ãã¬ã¼ã ã®æ大å¤ãã¨ã£ãç»åãå ¥åç»åï¼ï¼ç¶æ ï¼ã¨ãã¦æ¡ç¨ããã
- No-Operation
â DQNã®é©ç¨ä¾
- ï¼ä¾ï¼DQNï¼2013å¹´ãã¼ã¸ã§ã³ï¼ãç¨ããåç«æ¯å課é¡ï¼CartPoleï¼
- ï¼ä¾ï¼DQNï¼2015å¹´Natureãã¼ã¸ã§ã³ï¼ãç¨ããåç«æ¯å課é¡ï¼CartPoleï¼
â Double-DQNï¼DDQNï¼
Qå¦ç¿ã§ã®é¢æ°è¿ä¼¼ããã®å»¶é·ç·ä¸ã§ããDQNã§ã¯ãä¸å¼ã®ããã«ãæ師ãã¼ã¿ããæ¨å®ä¾¡å¤é¢æ°ã®æ´æ°å¼ã§ã®maxãªãã¬ã¼ã¿ã¼ã«ããã°ãªã¼ãã£ãªè¡åé¸æã«ããçæãã¦ããã
ããããªããããã®ã°ãªã¼ãã£ãªè¡åé¸æã§ã¯ãæ¬å½ã¯ä¾¡å¤ãé«ããªããããªè¡å a ãé大è©ä¾¡ããçµæã¨ãã¦ãé大ãªè¡å価å¤è©ä¾¡ãè¡ã£ã¦ãã¾ããã¨ãããããã«ãæ£è§£ãã¼ã¿ã§ããã¹ãæ師ãã¼ã¿ã¨ãã¦ãä¸é©åãªãã¼ã¿ã«ãªã£ã¦ãã¾ããã¨ãå¤ã
çãããããå¦ç¿ã®ä¸å®å®åè¦å ã®ï¼ã¤ã¨ãªãã
ä¸æ¹ã§ãDQNã§ã¯ãå¦ç¿å®å®åã®ããã®å·¥å¤«ã¨ãã¦ãFixed Target Network ã®ä»çµã¿ãå°å
¥ããã
ããã¯ãå¤ãæéã¹ãããã§ã®éã¿ ã§åºå®ããããããã¯ã¼ã¯ï¼ï¼Fixed Target Network ã¨ããï¼ã«ããé¢æ°è¿ä¼¼å¨ ã使ç¨ããä¸å®ã®å¨æã§å¤ãéã¿ ã¨ææ°ã®é㿠θ ãåæããããã«ãããã®ã§ãã£ãã
DDQNã§ã¯ããã®Target Network ã«ããå¦ç¿å®å®åã®ããã®å·¥å¤«ãæ´ã«çºå±ãããã
å
·ä½çã«ã¯ã次ã®ç¶æ
ã§Qå¤ãæ大åããè¡å ã¯ãMain Network ããæ±ãããã®ç¶æ
è¡å対 ã§ã®Qå¤ã¯ãTarget Network ããæ±ããããã«ããã
å¼ã§æ¸ãã¨ã
â DDQNã®é©ç¨ä¾
- ï¼ä¾ï¼DDQNãç¨ããåç«æ¯å課é¡ï¼CartPoleï¼
â Prioritized Experience Replayï¼åªå é ä½ä»ãçµé¨åçï¼
DQN ã§ã¯ãå¦ç¿ã®å®å®åã®ããã®å·¥å¤«ã¨ãã¦ãããã¨ãã½ã¼ãã®ç¶æ
å±¥æ´ï¼ï¼æç³»åãã¼ã¿ï¼ããè¤æ°ã¨ãã½ã¼ãã®æ§ã
ãªæéã¹ãããã§ã®ãã¼ã¿ã«ã·ã£ããã«ãããã®ããå¦ç¿ç¨ãã¼ã¿ã¨ãã¦å©ç¨ããã¨ãã Experience Relayï¼çµé¨åçï¼ãè¡ã£ã¦ããã
ããããªããããã® Experience Relay ã§ã¯ããããã®å¦ç¿ç¨ãã¼ã¿ãä¿ç®¡ããããã®ãããã¡ãµã¤ãºï¼ï¼replay memoryï¼ã®ãµã¤ãºã大ãããªãã¨ããåé¡ãåå¨ããã
Prioritized Experience Replayï¼åªå
é ä½ä»ãçµé¨åçï¼ã®åºæ¬çãªã³ã³ã»ããã¯ãQå¦ç¿ãååã«é²ãã§ããªãé·ç§»ãµã³ãã«ãåªå
çã«ãµã³ããªã³ã°ãããã¨ã§å¦ç¿ã®å¹çãæ¹åãããã¨ã§ããã
ããã«ãããããå°ãªããããã¡ãµã¤ãºã§å¹ççã«å¦ç¿ãããã¨ãåºæ¥ãããã«ãªãã
â» ãã®éã®ãQå¦ç¿ãååã«é²ãã§ããªããã®å¤æã¯ãï¼Qå¦ç¿ã§ã®ï¼TD誤差ã§è¡ãã
å
ã® Experience Relay ã§ã¯ãNåã®ãµã³ãã«ãã¼ã¿ãããªãå¦ç¿ç¨ãã¼ã¿ãããã¡ï¼ï¼replay memoryï¼ä¸ã® i çªç®ã®ãµã³ãã«ããµã³ããªã³ã°ããã確çåå¸ã§ãã ã«å¾ã£ã¦ãµã³ããªã³ã°ããã¦ãããã¨ã«ãªãã
ããã«å¯¾ãã¦ãPrioritized Experience Replay ã§ã¯ãTD誤差ã大ããé·ç§»ãµã³ãã«ã»ã©ãµã³ããªã³ã°ããããããªããããªãå¥ã®ç¢ºçåå¸ ã«å¾ã£ã¦ãµã³ããªã³ã°ãããããã«ãããå¦ç¿ãååé²ãã§ããªããµã³ãã«ã«ã¤ãã¦åªå
çã«å¦ç¿åºæ¥ãããã«ããã
ããã§ããã®ç¢ºçåå¸ ã®å
·ä½çãªå¼ã¨ãã¦ã¯ã以ä¸ã®ãããªç¨®é¡ãåå¨ããã
greedy TD-error priorization
æãåç´ãª TD誤差ã«åºã¥ããµã³ããªã³ã°æ¹æ³ã§ãTD誤差ã®çµ¶å¯¾å¤ãæ大ã®ãã®ã®ã¿ã greedy ã«ãµã³ããªã³ã°ããã
ä½ãããã®ææ³ã§ã¯ä»¥ä¸ã®ãããªåé¡ç¹ãåå¨ããããµã³ããªã³ã°ãããé·ç§»ãµã³ãã«ã®TD誤差ã®ã¿ãæ´æ°ãããã
ããã«ãããåæç¶æ ã«ããã¦ãTD誤差ãå°ããã£ãé·ç§»ãµã³ãã«ã¯ãé·æéãµã³ããªã³ã°ãããªãç¶æ ãç¶ããå¦ç¿ããã¾ãé²ã¾ãªããæ大å¤ã®ã¿ãåãã®ã§ãå±æçã«TD誤差ã大ãããªããããªã¹ãã¤ã¯ãã¤ãºã«éå°ã«åå¿ãã¦ãã¾ãã
TD誤差ã®å¤§ããé·ç§»ãµã³ãã«ã®ã¿ãµã³ããªã³ã°ããã®ã§ãå¦ç¿ãå¤æ§ã§ã¯ãªãå±æçã«ãªããéå¦ç¿ãèµ·ãããããã
Stochastic sampling method
å ã® greedy TD-error priorization ã§ã®åé¡ç¹ã解決ããããã«ãExperience Relay 㨠greedy ãªãµã³ããªã³ã°ææ³ã®ä¸éçãªãµã³ããªã³ã°ãè¡ãã
å³ã¡ãé·ç§»ãµã³ãã« i ã以ä¸ã®ãããªç¢ºçåå¸ã§ãµã³ããªã³ã°ããã
ããã§ããã®é·ç§»ãµã³ãã«åªå 度 ã®å ·ä½çãªå½¢ã«ã¯ã以ä¸ã®ãããªç¨®é¡ãåå¨ããã
Proportional Prioritization ( direct )
Rank-based Prioritization ( indirect )
ãã®ã¨ãã®ãµã³ããªã³ã°ã®ç¢ºçåå¸ã¯ã
ã¨å¤å½¢ã§ããã®ã§ã確çåå¸ ã¯ããã©ã¡ã¼ã¿ã¼ α ã«å¯¾ããã¹ãä¹åå¸ã¨ãªãããµã³ããªã³ã°ã®ç¢ºçåå¸ããã¹ãä¹åå¸ã¨ãªãã¨ãªããã¨ã«ãããå¤ãå¤ã«å¯¾ãã¦éå°ã«åå¿ããªããªããï¼Proportional Prioritization ã®æ¹æ³ãããï¼å¤ãå¤ã«å¯¾ãã¦ã®ããã¹ãæ§ãåä¸ããã
Annealing biasï¼éç¹ãµã³ããªã³ã°ã«ãããã¤ã¢ã¹è»½æ¸ï¼
ä¸æ§åå¸ã§ãªã確çåå¸ã¯ããµã³ããªã³ã°ã®åå¸ã«ãã¤ã¢ã¹ãçããããã®ã§ããã®ç¢ºçåå¸ã®æå¾ å¤ã®åæå¤ã«ããã¤ã¢ã¹ãçãã¦ãã¾ãåé¡ãããããã®ãã¤ã¢ã¹ã軽æ¸ãããããã«ãéç¹ãµã³ããªã³ã°ã«ããææ³ã使ç¨ãããã
å ·ä½çã«ã¯ã以ä¸ã®å¼ã§ä¸ããããéã¿ãTD誤差ã«æããï¼ï¼ãã¨ã§ããã¤ã¢ã¹ã軽æ¸ããã
- åèãµã¤ã
â Prioritized Experience Replay ã®é©ç¨ä¾
- ï¼ä¾ï¼DDQN & Prioritized Experience Replay ãç¨ããåç«æ¯å課é¡ï¼CartPoleï¼
â Dueling Network
å
ã® DQNãDDQNã§ã¯ãåç¶æ
s ãã¨ã«è¤æ°ã®è¡å ã«å¯¾ããè¡å価å¤é¢æ° ãä¸åº¦ã«åºåãããããã¯ã¼ã¯ã¢ã¼ããã¯ãã£ã«ãªã£ã¦ããã
ãã®ææ³ã§ã¯ãè¤æ°ã®è¡åã«å¯¾ããè¡å価å¤é¢æ° ãå
¨ã¦å¦ç¿ããå¿
è¦ããããããã®ãã¨ã¯ãä¾ãã°ãè¡å価å¤é¢æ° Q(s,a) ããç¶æ
s ã®ã¿ã«å¤§ããä¾åãã¦ãè¡å a ã®é¸æã«ããå½±é¿ãå°ããå ´åã«ããã¦ã¯ããã®è¨ç®å¹çã¯ããã¨ã¯è¨ããªãã
Dueling Network ã¯ãä¸å³ã®ããã«ããã®ãã㪠DQN ã®ãããã¯ã¼ã¯ã¢ã¼ããã¯ãã£ãæ¡å¼µãããããã¯ã¼ã¯ããç¶æ
価å¤é¢æ° ãç´æ¥æ±ããã®ã§ã¯ãªããè¡å価å¤é¢æ° ãè©ä¾¡ãããããã¯ã¼ã¯é¨åã¨ã¢ããã³ãã¼ã¸é¢æ°ã¨å¼ã°ããé¢æ° ãè©ä¾¡ãããããã¯ã¼ã¯é¨åãåé¢ãã¦è¿½å ãããã¨ã§ãç¶æ
価å¤é¢æ° ã¨ã¢ããã³ãã¼ã¸é¢æ° ãå¥ã
ã«å¦ç¿ããããããè¡å価å¤é¢æ° ãç®åºã§ããããã«ããææ³ã§ããã
ããã«ãããåç¶æ
ãã¨ã«è¤æ°ã®è¡åã«å¯¾ããè¡å価å¤é¢æ°ãä¸åº¦ã«åºåããDQNã«æ¯ã¹ã¦ãå°ãªãã¹ãããæ°ã§ãå¦ç¿ãé²ãããã¨ãã§ããããã«ãªãã¡ãªãããåå¨ããã
â» ããã§ãã¢ããã³ãã¼ã¸é¢æ° ã¯ããã®å®ç¾©å¼ ãããç¶æ
ä¾¡å¤ ã«å¯¾ããç¹å®ã®è¡å a ãé¸æããå ´åã®ç¸å¯¾çãªä¾¡å¤ã表ãã¦ããã
â» ãã£ã¨ç°¡åã«è¨ãã°ãã¢ããã³ãã¼ã¸é¢æ°ã¯ãè¡å価å¤é¢æ°ããç¶æ
価å¤é¢æ°ãå¼ããã¨ã§ãè¡åã®ã¿ã®ä¾¡å¤ãå¾ã¦ããã¨ãè¨ããã
ã¢ããã³ãã¼ã¸é¢æ°ã¨ãããã¯ã¼ã¯ã®åé¢
ã¢ããã³ãã¼ã¸é¢æ° ã®å®ç¾©å¼ãå¤å½¢ããã¨ã
ã¨ãªããï¼ã¤ã®åé¢ããããããã¯ã¼ã¯ããã®åºåã§ããã¢ããã³ãã¼ã¸é¢æ°ã¨ç¶æ 価å¤é¢æ°ãå ç®åé¢ãããã®ã¨ãªããã¨ããããã
ããã§ãå®éã®ãããã¯ã¼ã¯ããã®å種åºåã¯ãï¼CNNã§ã®ï¼éã¿ãã©ã¡ã¼ã¿ã¼ θ,α,β ã«é¢ãã¦ã®æ¨å®é¢æ°ã§ããã®ã§ããã®å ç®åé¢å¼ã¯ã
ã§è¡¨ç¾ãããããã«æãããããã®æ¨å®é¢æ°ã§ã®å¼ã¯ãããã¾ã§ï¼CNNããã®ï¼æ¨å®å¤ã§ãããçã®å¤ã¨ç°ãªãã®ã§ããã®æ¨å®é¢æ°ã§ã®åé¢å¼ã¯å³å¯ã«ã¯æãç«ããªãã
ä¾ãã°ãã°ãªããä¸ã®è¿·è·¯æ¢ç´¢åé¡ã«ããã¦ãè¡åâã§ã®ã¢ããã³ãã¼ã¸æ¨å®é¢æ°ã®èª¤å·®ã b0 ã§ãã£ãå ´åãå ã®å ç®å¼ãæãç«ã¤ããã«ã¯ãæ¨å®ä¾¡å¤é¢æ°ã«ãããæã¡æ¶ã誤差 -b0 ãä¹ãå¿ è¦ãããã
å¼ã§æ¸ãã¨ã
ä¸æ¹ã§ãè¡åâã§ã®ã¢ããã³ãã¼ã¸æ¨å®é¢æ°ã®èª¤å·®ã b1 ã§ãã£ãå ´åãå ã®å ç®å¼ãæãç«ã¤ããã«ã¯ãæ¨å®ä¾¡å¤é¢æ°ã«ãå ã® b0 ã¨ã¯ç°ãªããããªãæã¡æ¶ã誤差 -b1 ãä¹ãå¿ è¦ãããã
å¼ã§æ¸ãã¨ã
ã¤ã¾ããå ã®å ç®å¼ãæãç«ã¤ããã«ã¯ãè¡åã®ç¨®é¡ã«ãã£ã¦ãç°ãªãå¤ã®èª¤å·®ãæ¨å®ä¾¡å¤é¢æ°ã«ä¹ãå¿ è¦ããããããã¯ãå¦ç¿ã®ä¸å®å®åè¦å ã«ãªã£ã¦ãã¾ãã
å¾ã£ã¦ããã®åé¢å¼ã®ããããè¿ä¼¼å¼ã¨ãã¦ã以ä¸ã®ï¼ã¤ã®è¿ä¼¼å¼ãèããã
ãããï¼ã¤ã®å¼ã®èµ¤åã®é¨åã§ã¯ãããããå ¨ã¦ã®è¡å ã«å¯¾ãã¦ã®ã¢ããã³ãã¼ã¸é¢æ° ãè¨ç®ãããã¨ã«ãªãã®ã§ãããè¡åãè¡ã£ãã¨ãã«ããå¥ã®è¡åã§ã®ã¢ããã³ãã¼ã¸é¢æ°ã«ç¹ãããã©ã¡ã¼ã¿ã¼ï¼éã¿ï¼ãæ´æ°ã§ããåã ã®è¡åã§ã®ã¢ããã³ãã¼ã¸é¢æ°ãç¬ç«ã«è¨ç®ãããã®ãé²ããã¨ãã§ããã
ãã®çµæã¨ãã¦ãå¦ç¿ã®ä¸å®å®åè¦å ã§ãããè¡åã®ç¨®é¡ã«ãã£ã¦ãç°ãªãå¤ã®èª¤å·®ãæ¨å®ä¾¡å¤é¢æ°ã«ä¹ããã¨ã軽æ¸ãããã¨ãã§ãããåèãµã¤ã
â Dueling Network ã®é©ç¨ä¾
- ï¼ä¾ï¼Dueling Network ãç¨ããåç«æ¯å課é¡ï¼CartPoleï¼
â A2C [Advantage Actor-Critic]
A2C [Advantage Actor Critic] ã¯ãAdvantageå¦ç¿ãã¢ã¯ã¿ã¼ã¯ãªãã£ãã¯ã¢ãã«ã§ã®ãã¥ã¼ã©ã«ãããã¯ã¼ã¯ãåã³ãæ¹çå¾é
æ³ã«åºã¥ãæ失é¢æ°ããã¼ã¹ã«ãã深層強åå¦ç¿ææ³ã§ããã
â» A2C ã®ååã«ãã Advantage Actor Critic ã®è¨èèªä½ã«ã¯åæ£ä¸¦åã®æå³ã¯å«ã¾ããªãããå
¬å¼ã® A2C ã¯åæ£ç°å¢ã§ä¸¦åã«çµé¨ãåéããææ³ãå«ããã¨ã«æ³¨æããã㯠A2C [Advantage Actor Critic] ã A3C [Asynchronous Advantage Actor Critic] ã®å¾çºã§ãããã¨ã«ç±æ¥ããã
â» ããã§è§£èª¬ãã A2C ã¯ããã®åæ£ç°å¢ã§ä¸¦åã«çµé¨ãåéããææ³ãå«ã¾ãªããã®ã¨ãã¦ããã
Advantage å¦ç¿ï¼
ããã¾ã§ã¿ã¦ããQå¦ç¿ãªã©ã®TDå¦ç¿ãDQNã§ã¯ãï¼æéã¹ãããé tât+1 ã§ã®ä¾¡å¤é¢æ°ã®æ´æ°ãç¹°ãè¿ããã¨ã§å¦ç¿ãè¡ã£ã¦ããã
ããããªããããã® 1ã¹ãããéé·ç§»ã§æ¨å®å¤ã®æ´æ°ãç¹°ãè¿ãæ¹æ³ã§ã¯ãæ£ããå¤ã«åæããã®ã«æéãããã£ã¦ãã¾ãã¨ããåé¡ç¹ãåå¨ãããAdvantage å¦ç¿ã§ã¯ããã®åé¡ã解決ããããã«ãï¼ã¹ãããå ã§ã¯ãªãè¤æ°ã® k ã¹ãããå ã¾ã§ä¸æ°ã«åããã¦æ¨å®å¤ã®æ´æ°ãè¡ããã¨ã§ãå¦ç¿ã®åæã¹ãã¼ããé«ããã
ããã§ããã®éã®æ´æ°å¯¾è±¡ã¨ãªãæ¨å®éã¯ã価å¤é¢æ°ã§ã¯ãªãã¢ããã³ãã¼ã¸é¢æ°ã¨ãªãã
å¼ã§æ¸ãã¨ã
â» ã¢ããã³ãã¼ã¸é¢æ°ã®è¨ç®ã§ãè¡å価å¤é¢æ° Q ã¨ç¶æ 価å¤é¢æ° V ã®åæ¹ãè¨ç®ãããã¨ãé¿ãããããè¡å価å¤é¢æ° Q ã¯ãå²å¼å©å¾ã¨å²å¼ãããç¶æ 価å¤é¢æ°ã®åï¼èµ¤åé¨åï¼ã使ç¨ãã¦ãããã¨ã«æ³¨æã
â» ã¹ãããå¹ k ã®å¤ã大ããã¨ããããã¨ã誤ã£ãå¦ç¿ããã¦ãã¾ãå¯è½æ§ãå¢å¤§ãããããæé©ãª k ã®å¤ã¯ãã¿ã¹ã¯ã«å¿ãããã¤ãã¼ãã©ã¡ã¼ã¿ã¨ãªããããã§ãå¾è¿°ã§ç¤ºãããã«ãA2Cã§ã¯ããã®ã¢ããã³ãã¼ã¸å¦ç¿ãã¢ã¯ã¿ã¼ã¯ãªãã£ãã¯ã¢ãã«ã«é©ç¨ããã®ã§ãæ¨å®ç¶æ 価å¤é¢æ° V(s) ã¯ãè¡åæ¹ç Ï ã§ã®æ¨å®ç¶æ 価å¤é¢æ° ã«ãªããã¢ããã³ãã¼ã¸é¢æ°ã®è¨ç®å¼ã¯ã
ã¨ãªããActor Critic ã¢ãã«ã§ã®ãã¥ã¼ã©ã«ãããã¯ã¼ã¯ï¼
DQNã§ã¯ãããç¶æ s ã«å¯¾ãã¦ãè¤æ°ã®è¡åã«å¯¾ããè¡å価å¤é¢æ° ãå ¨ã¦å¦ç¿ããå¿ è¦ããããããã®ãã¨ã¯ãä¾ãã°ãè¡å価å¤é¢æ° Q(s,a) ããç¶æ s ã®ã¿ã«å¤§ããä¾åãã¦ãè¡å a ã®é¸æã«ããå½±é¿ãå°ããå ´åã«ããã¦ã¯ããã®è¨ç®å¹çã¯ããã¨ã¯è¨ããªãã
ï¼â» Dueling Network ã§ã¯ããã®åé¡ã解決ããããã«ãå¾ãã«ãã¢ããã³ãã¼ã¸é¢æ°ã¨ç¶æ 価å¤é¢æ°ã®ï¼ã¤ã®ãããã¯ã¼ã¯ã§åé¢ããã¦ããï¼A2C ã§ã¯ãã¢ã¯ã¿ã¼ã¯ãªãã£ãã¯ææ³ã®ã¢ãã«ãæ¡ç¨ããã¢ã¯ã¿ã¼ã®è¡åæ¹ç Ï(s,a) ã¨ãã¯ãªãã£ãã¯ã®æ¨å®ç¶æ 価å¤é¢æ° V(s) ãããããç¬ç«ã«å¦ç¿ããã¦ãããã¨ã§ãè¨ç®å¹çãæ¹åããã
ãã®éã«ãã¢ã¯ã¿ã¼ã¯ãªãã£ãã¯ã¢ãã«ããã¥ã¼ã©ã«ãããã¯ã¼ã¯ã«çµã¿è¾¼ããã¨ã«ãªãããã¢ããªã³ã°ããã«ããã£ã¦çç®ããã®ã¯ãã¢ã¯ã¿ã¼ã¯ãªãã£ãã¯ã¢ãã«ã«ãããå ¥åºåé¢ä¿ã§ããã
å³ã¡ã
â ã¢ã¯ã¿ã¼ã¯ãç¶æ s ãå ¥åããè¡åæ¹ç Ï(s) ãåºåããã
â å®éã«ã¯ãã¢ããã³ãã¼ã¸é¢æ° A(s) ãåºåãããããã softmax ãããã¨ã§ãè¡åæ¹ç Ï(s) ãåºåããã
â¡ ã¯ãªãã£ãã¯ã¯ãç¶æ s ãå ¥åããè¡åæ¹ç Ï ã§ã®æ¨å®ç¶æ 価å¤é¢æ° ãåºåãããä¸å³ã¯ããã®ã¢ã¯ã¿ã¼ã¯ãªãã£ãã¯ã¢ãã«ã«ãããå ¥åºåé¢ä¿ããã¨ã«ããã¥ã¼ã©ã«ãããã¯ã¼ã¯ãæ§ç¯ããã¢ã¼ããã¯ãã£å³ã§ããã
â» å ¥åºåé¢ä¿ã®èª¬æã®ããããããããã¥ã¼ã©ã«ãããã¯ã¼ã¯ã®ãããã¯ã¼ã¯æ§æã¨ãã¦ãCNNã§ã¯ãªãMLPä¸ã§èª¬æãã¦ããããä¸è¬çã«ã¯CNNã使ç¨ããããã¨ã«æ³¨æãæ失é¢æ°
ãã¥ã¼ã©ã«ãããã¯ã¼ã¯ã®éã¿ãã©ã¡ã¼ã¿ã¯ã誤差éä¼æ¬ã«ããè¡ããããããã®éã«æ失é¢æ°ãå®ç¾©ããã¦ããå¿ è¦ãããã
A2C ã«ãããããã¥ã¼ã©ã«ãããã¯ã¼ã¯ã§ã®ã¢ã¯ã¿ã¼ã¯ãªãã£ãã¯ã¢ãã«ã§ã¯ãã¢ã¯ã¿ã¼ã¨ã¯ãªãã£ãã¯ã®ï¼ã¤ã®ãããã¯ã¼ã¯ãåå¨ããã®ã§ãæ失é¢æ°ã«ã¯ãã¢ã¯ã¿ã¼å´ã®æ失é¢æ°ã¨ãã¯ãªãã£ãã¯å´ã®æ失é¢æ°ã®ï¼ã¤ãããããå®ç¾©ããå¿ è¦ããããã¢ã¯ã¿ã¼å´ã®æ失é¢æ°ï¼æ¹çå¾é æ³ã«åºã¥ãæ失é¢æ°ï¼
ã¾ããã¢ã¯ã¿ã¼å´ã®æ失é¢æ°ã«ã¤ãã¦èããã
ã¢ã¯ã¿ã¼ãæ大åãããã®ã¯å²å¼å©å¾ã§ããã®ã§ãå²å¼å©å¾ã§ãã£ã¦ããã¤ã¢ããã³ãã¼ã¸é¢æ°ã§è¡¨ç¾ãããé¢æ°ãé©åã§ããã¨èããããããããã«ã¯æ¹çå¾é æ³ã«ãããå²å¼å©å¾ã®æå¾ å¤ã使ç¨ãããã
å³ã¡ã
ããã§ãã¢ããã³ãã¼ã¸é¢æ° ã«ãããè¡å価å¤é¢æ° ã¯ãå ã®ã¢ããã³ãã¼ã¸å¦ç¿ã§ã¿ãããã«ã
ã®ããã«ãè¡å a ã«å¯¾ããå®æ°ã§è¡¨ç¾ããããã®ã§è¿ä¼¼ãããæ´ã«ã以ä¸ã®å¼ã§ä¸ããããã¨ã³ãããã¼é ã®ãã¤ãã¹å¤ãå ããã
â ä¸æ§åå¸ã¨ãªãè¡åæ¹çã§æ大å¤ãã¨ããã©ããï¼ã¤ã®è¡åãé¸æãã決å®è«çãªè¡åæ¹çã§æå°å¤ã¨ãªãã
â» ãã®ã¨ã³ãããã¼é ãæ失é¢æ°ã«å ãããã¨ã§ãå¦ç¿åæã«ããããã©ã¡ã¼ã¿ θ ã®æ´æ°ããå±æçæé©è§£ã«é¥ã£ã¦æãåºããªããªã£ã¦ãã¾ããã¨ãé²ãå¹æãããã以ä¸ãã¾ã¨ããã¨ãã¢ã¯ã¿ã¼å´ã®æ失é¢æ°ã¯ã以ä¸ã®ããã«ãªãã
ã¯ãªãã£ãã¯å´ã®æ失é¢æ°
ã¯ãªãã£ãã¯å´ã¯ãç¶æ 価å¤é¢æ°ã®æ¨å®å¤ V^Ï (s_t ) ãæ£ããåºååºæ¥ãããã«å¦ç¿ããããã®ã§ãç¶æ s ããå®éã«è¡å a ãé¸æãã¦å¾ãããè¡å価å¤é¢æ° ã¨ã®å·®ã®ï¼ä¹ã§ãæ失é¢æ°ãå®ç¾©ããã
å³ã¡ã
â åèãµã¤ãã¨åèæç®
â åèãµã¤ã
強調æåä»ãã¯ãç¹ã«åèã«ãããããã£ããµã¤ãã§ãã
ãå ¨è¬ã
ãå¤å ¸çå¼·åå¦ç¿ææ³ã
- å¼·åå¦ç¿ã«ã¤ãã¦å¦ãã§ã¿ããï¼ã¾ã¨ãï¼ - ããã®ãã¾ã
- ä»ããèããªãå¼·åå¦ç¿ï¼1ï¼ï¼ç¶æ 価å¤é¢æ°ã¨Bellmanæ¹ç¨å¼
- Reinforcement Learning: An Introduction(Richard S. Sutton and Andrew G. Barto)
- 第ï¼ç« ï¼ å¼·åå¦ç¿ã®åºç¤çè«
- dissecting reinforcement learning
- Reinforcement Learning(æ¹çæ¹åå®ç)
- å¼·åå¦ç¿çè«ã®åºç¤3
ã深層強åå¦ç¿ã
- DQNããRainbowã¾ã§ ã深層強åå¦ç¿ã®ææ°ååã
- ã¼ãããå§ãã深層強åå¦ç¿ï¼NLP2018è¬æ¼è³æï¼/ Introduction of Deep Reinforcement Learning
- 深層強åå¦ç¿ã¢ã«ã´ãªãºã ã¾ã¨ã
- DQNã®çãç«ã¡ãï¼ãDeep Q-NetworkãChainerã§æ¸ãã
- æè¿ã®DQN
- DQNã®çè«èª¬æ
- Prioritized Experience Replay - DeepLearningãåå¼·ãã人
- Prioritized Experience Replayãèªãã
- è«æç´¹ä»ï¼Dueling network architectures for deep reinforcement learning
- DQNãåæ¥ãã¦A3Cã§éä¸æ«æããªãããã®7Tips
- GANï¼ã¨å¼·åå¦ç¿ã¨ã®é¢ä¿ï¼
- DQNããRainbowã¾ã§ ã深層強åå¦ç¿ã®ææ°ååã
â åèæç®
- ä½è : Richard S.Sutton,Andrew G.Barto,ä¸ä¸è²è³,çå·é ç«
- åºç社/ã¡ã¼ã«ã¼: 森ååºç
- çºå£²æ¥: 2000/12/01
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- è³¼å ¥: 5人 ã¯ãªãã¯: 76å
- ãã®ååãå«ãããã° (29件) ãè¦ã
éç¿ å¼·åå¦ç¿ âåºç¤çè«ã¨ã¢ã«ã´ãªãºã â
- ä½è : Csaba Szepesvari,å°å±±ç°åµå²,åç°æ°ä¸,å°å±±é å ¸,æ± ç°æ¥ä¹ä»,大渡åå·±,èæ 太æ,é¢æ ¹åµ©ä¹,é«å±±æä¸,ç°ä¸ä¸æ¨¹,西æç´æ¨¹,è¤ç°åº·å,ææ駿ä¸
- åºç社/ã¡ã¼ã«ã¼: å ±ç«åºç
- çºå£²æ¥: 2017/09/21
- ã¡ãã£ã¢: åè¡æ¬
- ãã®ååãå«ãããã°ãè¦ã
- ä½è : ç§é貴樹,æ¾è°·é·å²,ç½å·çä¸,æµ ç°ç¨,麻çè±æ¨¹,èäºå¹¸ä»£,飯éç,ä¼è¤ç,大ååå,é»æ±åº·æ,ææ¬å¾³å,åªäºç¥å¤ª,é 谷賢治,åç°æ°ä¸,æ¾äºè¤äºé,å泰浩,å®®å´åå ,ç®é»è±ç¾,森æå²é,森æ¬æ·³,ä¿ç°ä¿è¡,åæ¬æ½¤ä¸é
- åºç社/ã¡ã¼ã«ã¼: 森ååºç
- çºå£²æ¥: 2016/10/27
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- ãã®ååãå«ãããã° (3件) ãè¦ã
ã¤ãããªããå¦ã¶! 深層強åå¦ç¿ ~PyTorchã«ããå®è·µããã°ã©ãã³ã°~
- ä½è : æ ªå¼ä¼ç¤¾é»éå½éæ å ±ãµã¼ãã¹å°å·é太é
- åºç社/ã¡ã¼ã«ã¼: ãã¤ããåºç
- çºå£²æ¥: 2018/06/28
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- ãã®ååãå«ãããã°ãè¦ã
- ä½è : ä¹ ä¿éå®
- åºç社/ã¡ã¼ã«ã¼: è¬è«ç¤¾
- çºå£²æ¥: 2019/01/17
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- ãã®ååãå«ãããã°ãè¦ã