[[Tableofcontents]] = machine learning = 1. Supervised learning 1. Unsupervised learning 1. Reinforcement learning == supervised learning == * í•™ìŠµì„ ì‹œí‚¬ ë•Œ input으로 value와 labelì„ í•¨ê»˜ ì „ë‹¬ * Learning from difference between prediction and target * e.g. mnist, classification == unsupervised learning == * input: value만 ìž…ë ¥, projection등으로 ì „ì²˜ë¦¬í•œ 값들로 계산 * Cluster by distance between inputs * Human can't predict the outcome * e.g. clustering == reinforcement learning == * ì¼ì¢…ì˜ unsupervised learning * input : environment, reward, output : action * Learn from try * Model free * e.g. game play, stock trading == reinforcement learning == * Q learning * Q learning + Neural Network * DQN : Deep Q Learning * hidden layer를 늘리는게 다가 아니다! == Basic knowledge == * MDP : Markov Decision Process * Bellman equation * Dynamic programming * Value, Polish * Value function, Polish function * Value iteration, Polish iteration == 실습 == * [https://gym.openai.com gym]: Reinforcement learningì„ ìœ„í•œ ê³ ì „ ê²Œìž„ë“¤ì„ python으로 í¬íŒ…í•œ toolkit. ì§ì ‘ 구현한 ê²ƒë„ ìžˆê³ atari는 í¬íŒ…함. [https://github.com/openai/gym in github]ì— ì½”ë“œê°€ 공개ë˜ì–´ 있다. * 오늘 ì‹¤ìŠµí• [https://gym.openai.com/envs/CartPole-v0 cartpole] * 필요한 ë¼ì´ë¸ŒëŸ¬ë¦¬: numpy, gym, tensorflow í•„ìš” {{{ $ pip install gym $ pip install tensorflow }}} === 순서 === 1. ì¼ë‹¨ cartpole ì‹¤í–‰ì„ í•´ë³´ìž! - [https://github.com/Rabierre/cartpole/blob/master/cartpole_init.py cartpole_init.py] 1. random action(왼쪽, 오른쪽)ì„ í•˜ëŠ” cartpole - [https://github.com/Rabierre/cartpole/blob/master/cartpole_random.py cartpole_random.py] 1. q-network(q-learningì˜ NNë²„ì „) - [https://github.com/Rabierre/cartpole/blob/master/cartpole_qnetwork.py cartpole_qnetwork.py] 1. DQN - [https://github.com/Rabierre/cartpole/blob/master/cartpole_dqn.py cartpole_dqn.py] 1. 2015ì— Deep Mindì—ì„œ 발표한 DQN - [https://github.com/Rabierre/cartpole/blob/master/cartpole_dqn2015.py cartpole_dqn2015.py] == Reference == * 발표 슬ë¼ì´ë“œ: [https://slides.com/rabierre/playing_a_game_with_rl slide] * 실습코드: [https://github.com/Rabierre/cartpole github] * DeepMindì˜ DQN 논문: [https://arxiv.org/abs/1312.5602 Playing Atari with Deep Reinforcement Learning] * Tensorflow tutorial: [https://github.com/golbin/TensorFlow-Tutorials/tree/master/10%20-%20DQN DQN] == Furthermore == * [https://en.wikipedia.org/wiki/David_Silver_(programmer) David Silver]ì˜ ê°•ì˜ * [http://www0.cs.ucl.ac.uk/staff/d.silver/web/Teaching.html ê°•ì˜ë…¸íŠ¸] * [https://www.youtube.com/watch?v=2pWv7GOvuf0 ê°•ì˜ ì˜ìƒ] * Gitbook: [https://www.gitbook.com/book/dnddnjs/rl/details Fundamental of Reinforcement Learning]. 한글로 ë˜ì–´ 있다! * ë ˆí¼ëŸ°ìŠ¤ 모ìŒ: [Machine%20Learning] == 후기 ë° ê¸°íƒ€ì˜ê²¬ ==