{"id":40498,"date":"2024-11-04T01:52:13","date_gmt":"2024-11-04T01:52:13","guid":{"rendered":"https:\/\/atmokpo.com\/w\/?p=40498"},"modified":"2024-11-26T06:39:01","modified_gmt":"2024-11-26T06:39:01","slug":"37-python%ec%9d%84-%ed%99%9c%ec%9a%a9%ed%95%9c-%ea%b0%95%ed%99%94%ed%95%99%ec%8a%b5-%ed%99%98%ea%b2%bd-%ea%b5%ac%ec%b6%95-%eb%b0%8f-%ec%97%90%ec%9d%b4%ec%a0%84%ed%8a%b8-%ed%95%99%ec%8a%b5-openai-gym","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/40498\/","title":{"rendered":"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95"},"content":{"rendered":"<p><body><\/p>\n<article>\n<section>\n<h2>1. \uac15\ud654\ud559\uc2b5(RL) \uc18c\uac1c<\/h2>\n<p>\uac15\ud654\ud559\uc2b5( Reinforcement Learning, RL)\uc740 \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uacfc \uc0c1\ud638\uc791\uc6a9\ud558\uba74\uc11c \ubcf4\uc0c1\uc744 \ucd5c\ub300\ud654\ud558\ub294 \ubc29\ud5a5\uc73c\ub85c \ud559\uc2b5\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c \uc5d0\uc774\uc804\ud2b8\ub294 \uc561\uc158\uc744 \uc120\ud0dd\ud558\uace0, \ud658\uacbd\uc73c\ub85c\ubd80\ud130 \ubcf4\uc0c1\uacfc \ub2e4\uc74c \uc0c1\ud0dc\ub97c \ubc1b\uace0, \uc774\ub97c \ud1b5\ud574 \uc815\ucc45(policy)\uc744 \uac1c\uc120\ud569\ub2c8\ub2e4.<\/p>\n<p>RL\uc744 \uc774\ud574\ud558\uae30 \uc704\ud574\uc11c\ub294 \uba87 \uac00\uc9c0 \ud575\uc2ec \uac1c\ub150\uc744 \uc775\ud600\uc57c \ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\ud658\uacbd(Environment)<\/strong>: \uc5d0\uc774\uc804\ud2b8\uac00 \uc0c1\ud638\uc791\uc6a9\ud558\ub294 \ub300\uc0c1\uc785\ub2c8\ub2e4. RL \ubb38\uc81c\ub97c \uc815\uc758\ud558\ub294 \ub370 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\uc0c1\ud0dc(State)<\/strong>: \uc5d0\uc774\uc804\ud2b8\uac00 \ud604\uc7ac \ud658\uacbd\uc5d0\uc11c \uad00\uce21\ud558\ub294 \uc815\ubcf4\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\ud589\ub3d9(Action)<\/strong>: \uc5d0\uc774\uc804\ud2b8\uac00 \uc120\ud0dd\ud560 \uc218 \uc788\ub294 \uc5ec\ub7ec \uc120\ud0dd\uc9c0\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\ubcf4\uc0c1(Reward)<\/strong>: \uc5d0\uc774\uc804\ud2b8\uac00 \ud2b9\uc815 \uc0c1\ud0dc\uc5d0\uc11c \ud589\ub3d9\uc744 \ucde8\ud55c \ud6c4 \ud658\uacbd\uc73c\ub85c\ubd80\ud130 \ubc1b\ub294 \ud53c\ub4dc\ubc31\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\uc815\ucc45(Policy)<\/strong>: \ud2b9\uc815 \uc0c1\ud0dc\uc5d0\uc11c \uc5b4\ub5a4 \ud589\ub3d9\uc744 \ucde8\ud560\uc9c0 \uacb0\uc815\ud558\ub294 \uc804\ub7b5\uc785\ub2c8\ub2e4. \uc815\ucc45\uc740 \uc5d0\uc774\uc804\ud2b8\uc758 \ud559\uc2b5\uacfc \uc131\ub2a5\uc5d0 \uc9c1\uc811\uc801\uc778 \uc601\ud5a5\uc744 \ubbf8\uce69\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>2. OpenAI Gym \uc18c\uac1c<\/h2>\n<p><a href=\"https:\/\/gym.openai.com\/\">OpenAI Gym<\/a>\uc740 \uac15\ud654\ud559\uc2b5 \uc5d0\uc774\uc804\ud2b8\ub97c \uac1c\ubc1c\ud558\uace0 \ud3c9\uac00\ud560 \uc218 \uc788\ub294 \ud658\uacbd\uc744 \uc81c\uacf5\ud558\ub294 \ud234\ud0b7\uc785\ub2c8\ub2e4. \ub2e4\uc591\ud55c \ud658\uacbd\uc744 \uad6c\uc131\ud558\uace0 \uc0d8\ud50c\ub9c1\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\uc5b4, \uc5f0\uad6c\uc790 \ubc0f \uac1c\ubc1c\uc790\ub4e4\uc774 \uc27d\uac8c \uc2e4\ud5d8\ud574\ubcfc \uc218 \uc788\ub294 \ud1a0\ub300\ub97c \ub9c8\ub828\ud569\ub2c8\ub2e4.<\/p>\n<p>OpenAI Gym\uc5d0\ub294 \ub2e4\uc591\ud55c \ud658\uacbd\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\uc73c\uba70, &#8216;Atari \uac8c\uc784&#8217;, &#8216;\ub85c\ubd07 \uc2dc\ubbac\ub808\uc774\uc158&#8217;, &#8216;\ubb38\uc81c \ud574\uacb0&#8217; \ub4f1 \ub2e4\uc591\ud55c \uc885\ub958\uc758 \ubb38\uc81c\uac00 \uc815\uc758\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc5d0\uc774\uc804\ud2b8\uac00 \ub2e4\uc591\ud55c \uc0c1\ud669\uc5d0\uc11c \uc5b4\ub5bb\uac8c \ud559\uc2b5\ud558\ub294\uc9c0 \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>3. Python \ud658\uacbd \uc124\uc815<\/h2>\n<p>Python\uc744 \uc0ac\uc6a9\ud558\uc5ec \uac15\ud654\ud559\uc2b5 \ud658\uacbd\uc744 \uad6c\ucd95\ud558\uae30 \uc704\ud574 \uae30\ubcf8\uc801\uc73c\ub85c \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4. \uc5ec\uae30\uc5d0\uc11c\ub294 <strong>OpenAI Gym<\/strong>, <strong>NumPy<\/strong>, <strong>Matplotlib<\/strong> \ub4f1\uc744 \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc544\ub798\ub294 \ud658\uacbd\uc744 \uc124\uc815\ud558\uae30 \uc704\ud55c \uae30\ubcf8\uc801\uc778 \uc124\uce58 \uba85\ub839\uc5b4\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>pip install gym numpy matplotlib<\/code><\/pre>\n<\/section>\n<section>\n<h2>4. OpenAI Gym\uc744 \ud65c\uc6a9\ud55c \ud658\uacbd \uad6c\ucd95<\/h2>\n<p>OpenAI Gym\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub2e8\uc21c\ud55c \ud658\uacbd\uc744 \uad6c\ucd95\ud558\ub294 \uc608\uc81c\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uc608\uc81c\uc5d0\uc11c\ub294 &#8216;CartPole&#8217; \ud658\uacbd\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. &#8216;CartPole&#8217;\uc740 \ub9c9\ub300\uac00 \uc218\uc9c1\uc73c\ub85c \uc11c \uc788\uc73c\uba74 \ubc8c\uc5b4\uc9c0\ub294 \uc77c\ub828\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4. \ubaa9\ud45c\ub294 \uc774\ub97c \uc9c0\uc18d\uc801\uc73c\ub85c \uc720\uc9c0\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<pre><code>\nimport gym\n\n# CartPole \ud658\uacbd \uc0dd\uc131\nenv = gym.make('CartPole-v1')\n\n# \ud658\uacbd \ucd08\uae30\ud654\nstate = env.reset()\n\ndone = False\nwhile not done:\n    # \ub79c\ub364\ud55c \ud589\ub3d9 \uc120\ud0dd\n    action = env.action_space.sample() \n    # \ud658\uacbd\uc5d0\uc11c \ud589\ub3d9\uc744 \ucde8\ud558\uace0 \uacb0\uacfc\ub97c \uad00\ucc30\n    next_state, reward, done, info = env.step(action)\n    \n    # \ud604\uc7ac \uc0c1\ud0dc\ub97c \ub2e4\uc74c \uc0c1\ud0dc\ub85c \uc5c5\ub370\uc774\ud2b8\n    state = next_state\n\n# \ud658\uacbd \uc885\ub8cc\nenv.close()\n            <\/code><\/pre>\n<p>\uc704 \ucf54\ub4dc\ub294 \ubb34\uc791\uc704 \ud589\ub3d9\uc744 \uc120\ud0dd\ud558\uc5ec &#8216;CartPole&#8217; \ud658\uacbd\uc744 \ud0d0\uc0c9\ud558\ub294 \uac04\ub2e8\ud55c \uc608\uc81c\uc785\ub2c8\ub2e4. \uc774 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\uba74 \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uacfc \uc0c1\ud638\uc791\uc6a9\ud558\ub294 \uacfc\uc815\uc744 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>5. \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5<\/h2>\n<p>\uc5d0\uc774\uc804\ud2b8\ub97c \ud559\uc2b5\uc2dc\ud0a4\uae30 \uc704\ud574\uc11c\ub294 RL \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4. \uc5ec\uae30\uc11c\ub294 \uac00\uc7a5 \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 Q-\ub7ec\ub2dd(Q-learning) \uc54c\uace0\ub9ac\uc998\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \uc774\ub97c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<p>Q-\ub7ec\ub2dd\uc740 \ud2b9\uc815 \uc0c1\ud0dc-\ud589\ub3d9 \uc30d\uc758 \uac00\uce58\ub97c \ucd94\uc815\ud558\uc5ec \ucd5c\uc801 \uc815\ucc45\uc744 \ud559\uc2b5\ud558\ub294 \uc624\ud504\ub77c\uc778 \ubca8\ub9cc \ubc29\uc815\uc2dd \uae30\ubc18\uc758 \ud559\uc2b5 \uc54c\uace0\ub9ac\uc998\uc785\ub2c8\ub2e4. Q-\ub7ec\ub2dd\uc758 \ud575\uc2ec\uc740 Q-\uac12(Q-value)\uc744 \uc5c5\ub370\uc774\ud2b8\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774\ub97c \uc704\ud574 \ub2e4\uc74c\uacfc \uac19\uc740 \uc5c5\ub370\uc774\ud2b8 \uacf5\uc2dd\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>\nQ(s, a) \u2190 Q(s, a) + \u03b1 [R(s, a) + \u03b3 max a' Q(s', a') - Q(s, a)]\n            <\/code><\/pre>\n<p>\uc5ec\uae30\uc11c \uac01\uac01\uc758 \ubcc0\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uc758\ubbf8\ub97c \uac00\uc9d1\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\u03b1: \ud559\uc2b5\ub960 (Learning Rate)<\/li>\n<li>R: \ubcf4\uc0c1 \ud568\uc218 (Reward Function)<\/li>\n<li>\u03b3: \ud560\uc778\uc728 (Discount Factor)<\/li>\n<li>Q(s, a): \ud604\uc7ac \uc0c1\ud0dc s\uc5d0\uc11c \ud589\ub3d9 a\uc758 Q-\uac12<\/li>\n<\/ul>\n<p>\uc544\ub798\uc758 \ucf54\ub4dc\ub294 Q-\ub7ec\ub2dd \uc54c\uace0\ub9ac\uc998\uc744 \uc774\uc6a9\ud558\uc5ec &#8216;CartPole&#8217; \ud658\uacbd\uc5d0\uc11c \uc5d0\uc774\uc804\ud2b8\ub97c \ud559\uc2b5\uc2dc\ud0a4\ub294 \uc608\uc81c\ub97c \ubcf4\uc5ec\uc90d\ub2c8\ub2e4:<\/p>\n<pre><code>\nimport numpy as np\nimport gym\n\n# Q-\ud14c\uc774\ube14 \ucd08\uae30\ud654\nenv = gym.make('CartPole-v1')\nq_table = np.zeros((env.observation_space.shape[0], env.action_space.n))\n\n# Hyperparameters\nlearning_rate = 0.1\ndiscount_factor = 0.95\nnum_episodes = 1000\n\nfor episode in range(num_episodes):\n    state = env.reset()\n    done = False\n\n    while not done:\n        # \ud589\ub3d9 \uc120\ud0dd (Epsilon-greedy \uc815\ucc45)\n        if np.random.uniform(0, 1) &lt; 0.1:\n            action = env.action_space.sample()  # Exploration\n        else:\n            action = np.argmax(q_table[state])  # Exploitation\n        \n        # \ud658\uacbd\uc5d0\uc11c \ud589\ub3d9\uc744 \ucde8\ud558\uace0 \ub2e4\uc74c \uc0c1\ud0dc \ubc0f \ubcf4\uc0c1\uc744 \ubc1b\uc74c\n        next_state, reward, done, _ = env.step(action)\n        \n        # Q-\uac12 \uc5c5\ub370\uc774\ud2b8\n        q_table[state, action] = q_table[state, action] + learning_rate * (reward + discount_factor * np.max(q_table[next_state]) - q_table[state, action])\n        \n        # \uc0c1\ud0dc\ub97c \ub2e4\uc74c \uc0c1\ud0dc\ub85c \uc5c5\ub370\uc774\ud2b8\n        state = next_state\n\nenv.close()\n            <\/code><\/pre>\n<p>\uc704 \ucf54\ub4dc\ub294 \uac04\ub2e8\ud55c Q-\ub7ec\ub2dd \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud558\ub294 \uc608\uc81c\uc785\ub2c8\ub2e4. \uc774 \uc608\uc81c\ub97c \ud1b5\ud574 \uc6b0\ub9ac\ub294 \uc5d0\uc774\uc804\ud2b8\uac00 &#8216;CartPole&#8217; \ud658\uacbd\uc5d0\uc11c \ucd5c\uc801\uc758 \ud589\ub3d9\uc744 \ud559\uc2b5\ud558\ub294 \uacfc\uc815\uc744 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>6. \uacb0\uacfc \uc2dc\uac01\ud654 \ubc0f \uc131\ub2a5 \ud3c9\uac00<\/h2>\n<p>\ud6c8\ub828 \ud6c4 \uc5d0\uc774\uc804\ud2b8\uc758 \uc131\ub2a5\uc744 \ud3c9\uac00\ud558\uace0 \uacb0\uacfc\ub97c \uc2dc\uac01\ud654\ud558\ub294 \uac83\uc740 \uc911\uc694\ud55c \uacfc\uc815\uc785\ub2c8\ub2e4. \uc2dc\uac01\ud654\ub97c \ud1b5\ud574 \uc5d0\uc774\uc804\ud2b8\uc758 \ud559\uc2b5 \uc9c4\ud589 \uc0c1\ud669\uc744 \uc9c1\uad00\uc801\uc73c\ub85c \uc774\ud574\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798 \ucf54\ub4dc\ub294 \ud6c8\ub828\ub41c \uc5d0\uc774\uc804\ud2b8\uc758 \uc131\ub2a5\uc744 \uc2dc\uac01\ud654\ud558\ub294 \uc608\uc81c\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>\nimport matplotlib.pyplot as plt\n\n# \uc5d0\ud53c\uc18c\ub4dc\uc640 \ubcf4\uc0c1 \uc800\uc7a5\nreward_list = []\n\nfor episode in range(100):\n    state = env.reset()\n    total_reward = 0\n    done = False\n    \n    while not done:\n        action = np.argmax(q_table[state])\n        state, reward, done, _ = env.step(action)\n        total_reward += reward\n    \n    reward_list.append(total_reward)\n\nplt.plot(reward_list)\nplt.xlabel('Episodes')\nplt.ylabel('Total Reward')\nplt.title('Agent Performance')\nplt.show()\n            <\/code><\/pre>\n<p>\uc774 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\uba74 \uc5d0\uc774\uc804\ud2b8\uac00 \uc5d0\ud53c\uc18c\ub4dc \ubcc4\ub85c \uc5bb\uc740 \ucd1d \ubcf4\uc0c1\uc744 \uc2dc\uac01\ud654\ud55c \uadf8\ub798\ud504\ub97c \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub798\ud504\uac00 \uc0c1\uc2b9\ud558\ub294 \uacbd\ud5a5\uc744 \ubcf4\uc778\ub2e4\uba74 \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uc5d0\uc11c \uc810\ucc28 \ub354 \ub098\uc740 \uc131\uacfc\ub97c \ub0b4\uace0 \uc788\ub2e4\ub294 \uac83\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>7. \uace0\uae09 \uc8fc\uc81c: DQN(Deep Q-Network)<\/h2>\n<p>Q-\ub7ec\ub2dd\uc758 \ub2e8\uc21c\ud55c \ud615\ud0dc\ub294 \ud6a8\uacfc\uc801\uc774\uc9c0\ub9cc, \uc0c1\ud0dc \uacf5\uac04\uc774 \ud06c\uac70\ub098 \ubcf5\uc7a1\ud55c \uacbd\uc6b0\uc5d0\ub294 \uc131\ub2a5\uc5d0 \ud55c\uacc4\uac00 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \uadf9\ubcf5\ud558\uae30 \uc704\ud574 \ub525\ub7ec\ub2dd\uc744 \uacb0\ud569\ud55c DQN(Deep Q-Network) \uc54c\uace0\ub9ac\uc998\uc774 \uac1c\ubc1c\ub418\uc5c8\uc2b5\ub2c8\ub2e4. DQN\uc740 \uc2e0\uacbd\ub9dd\uc744 \uc0ac\uc6a9\ud558\uc5ec Q-\uac12\uc744 \uadfc\uc0ac\ud558\uc5ec \ub354 \ubcf5\uc7a1\ud55c \ud658\uacbd\uc5d0\uc11c\ub3c4 \ud6a8\uacfc\uc801\uc73c\ub85c \ud559\uc2b5\ud560 \uc218 \uc788\uac8c \ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\nimport tensorflow as tf\nfrom collections import deque\n\nclass DQNAgent:\n    def __init__(self, state_size, action_size):\n        self.state_size = state_size\n        self.action_size = action_size\n        self.memory = deque(maxlen=2000)\n        self.gamma = 0.95  # discount rate\n        self.epsilon = 1.0  # exploration rate\n        self.epsilon_min = 0.01\n        self.epsilon_decay = 0.995\n        self.model = self._build_model()\n\n    def _build_model(self):\n        model = tf.keras.Sequential([\n            tf.keras.layers.Dense(24, input_dim=self.state_size, activation='relu'),\n            tf.keras.layers.Dense(24, activation='relu'),\n            tf.keras.layers.Dense(self.action_size, activation='linear')\n        ])\n        model.compile(loss='mse', optimizer=tf.keras.optimizers.Adam(lr=0.001))\n        return model\n\n    def remember(self, state, action, reward, next_state, done):\n        self.memory.append((state, action, reward, next_state, done))\n\n    def act(self, state):\n        if np.random.rand() &lt;= self.epsilon:\n            return random.randrange(self.action_size)\n        act_values = self.model.predict(state)\n        return np.argmax(act_values[0])  # Returns the index of the action with the maximum value\n\n    def replay(self, batch_size):\n        minibatch = random.sample(self.memory, batch_size)\n        for state, action, reward, next_state, done in minibatch:\n            target = reward\n            if not done:\n                target = reward + self.gamma * np.amax(self.model.predict(next_state)[0])\n            target_f = self.model.predict(state)\n            target_f[0][action] = target\n            self.model.fit(state, target_f, epochs=1, verbose=0)\n\n# \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5 \ucf54\ub4dc \uc0dd\ub7b5\n            <\/code><\/pre>\n<p>DQN \uc5d0\uc774\uc804\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubcf5\uc7a1\ud55c \ud658\uacbd\uc5d0\uc11c\ub3c4 \ud559\uc2b5\uc744 \uc2dc\ub3c4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. DQN\uc740 Q-\ub7ec\ub2dd\uc744 \ub525\ub7ec\ub2dd\uc5d0 \ud1b5\ud569\ud558\uc5ec \ub354 \ub098\uc740 \uc131\ub2a5\uc744 \ubc1c\ud718\ud558\ub294\ub370, \uc774\ub294 \uace0\ucc28\uc6d0\uc801\uc778 \uc785\ub825\uc5d0 \ub300\ud55c \uc801\uc808\ud55c \ud589\ub3d9 \uacbd\ub85c\ub97c \ud559\uc2b5\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>8. \uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 Python\uc744 \ud65c\uc6a9\ud558\uc5ec OpenAI Gym\uc5d0\uc11c \uac15\ud654\ud559\uc2b5 \ud658\uacbd\uc744 \uad6c\ucd95\ud558\uace0 \uc5d0\uc774\uc804\ud2b8\ub97c \ud559\uc2b5\uc2dc\ud0a4\ub294 \uacfc\uc815\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uac15\ud654\ud559\uc2b5\uc740 \ub2e4\uc591\ud55c \ubd84\uc57c\uc5d0 \uc751\uc6a9\ub420 \uc218 \uc788\ub294 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \uae30\uc220\uc774\uba70, OpenAI Gym\uc744 \ud1b5\ud574 \uc2e4\ud5d8\ud560 \uc218 \uc788\ub294 \ub9ce\uc740 \ud658\uacbd\uc774 \uc874\uc7ac\ud569\ub2c8\ub2e4. \uac15\ud654\ud559\uc2b5\uc758 \uc54c\uace0\ub9ac\uc998\uc740 \uacc4\uc18d\ud574\uc11c \ubc1c\uc804\ud558\uace0 \uc788\uc73c\uba70, \uc774\ub294 \uc5f0\uad6c \ubc0f \uc2e4\uc6a9\uc801\uc778 \ubb38\uc81c \ud574\uacb0\uc5d0 \ud070 \uae30\uc5ec\ub97c \ud560 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc5d0\uc774\uc804\ud2b8\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \ud559\uc2b5\uc2dc\ud0a4\uae30 \uc704\ud574\uc11c\ub294 \ub2e4\uc591\ud55c \ud658\uacbd\uc5d0\uc11c \uc2e4\ud5d8\uc744 \uc9c4\ud589\ud558\uace0, \ucd5c\uc801\uc758 \ud558\uc774\ud37c\ud30c\ub77c\ubbf8\ud130\ub97c \ucc3e\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \uc55e\uc73c\ub85c\ub3c4 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uacfc \ud658\uacbd\uc744 \ud0d0\uc0c9\ud558\uba70 \uadf8 \uac00\ub2a5\uc131\uc744 \ud0d0\ud5d8\ud574\ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<\/section>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \uac15\ud654\ud559\uc2b5(RL) \uc18c\uac1c \uac15\ud654\ud559\uc2b5( Reinforcement Learning, RL)\uc740 \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uacfc \uc0c1\ud638\uc791\uc6a9\ud558\uba74\uc11c \ubcf4\uc0c1\uc744 \ucd5c\ub300\ud654\ud558\ub294 \ubc29\ud5a5\uc73c\ub85c \ud559\uc2b5\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c \uc5d0\uc774\uc804\ud2b8\ub294 \uc561\uc158\uc744 \uc120\ud0dd\ud558\uace0, \ud658\uacbd\uc73c\ub85c\ubd80\ud130 \ubcf4\uc0c1\uacfc \ub2e4\uc74c \uc0c1\ud0dc\ub97c \ubc1b\uace0, \uc774\ub97c \ud1b5\ud574 \uc815\ucc45(policy)\uc744 \uac1c\uc120\ud569\ub2c8\ub2e4. RL\uc744 \uc774\ud574\ud558\uae30 \uc704\ud574\uc11c\ub294 \uba87 \uac00\uc9c0 \ud575\uc2ec \uac1c\ub150\uc744 \uc775\ud600\uc57c \ud569\ub2c8\ub2e4: \ud658\uacbd(Environment): \uc5d0\uc774\uc804\ud2b8\uac00 \uc0c1\ud638\uc791\uc6a9\ud558\ub294 \ub300\uc0c1\uc785\ub2c8\ub2e4. RL \ubb38\uc81c\ub97c \uc815\uc758\ud558\ub294 \ub370 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4. \uc0c1\ud0dc(State): \uc5d0\uc774\uc804\ud2b8\uac00 \ud604\uc7ac \ud658\uacbd\uc5d0\uc11c \uad00\uce21\ud558\ub294 \uc815\ubcf4\uc785\ub2c8\ub2e4. \ud589\ub3d9(Action): &hellip; <a href=\"https:\/\/atmokpo.com\/w\/40498\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[213],"tags":[],"class_list":["post-40498","post","type-post","status-publish","format-standard","hentry","category-213"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/40498\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \uac15\ud654\ud559\uc2b5(RL) \uc18c\uac1c \uac15\ud654\ud559\uc2b5( Reinforcement Learning, RL)\uc740 \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uacfc \uc0c1\ud638\uc791\uc6a9\ud558\uba74\uc11c \ubcf4\uc0c1\uc744 \ucd5c\ub300\ud654\ud558\ub294 \ubc29\ud5a5\uc73c\ub85c \ud559\uc2b5\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c \uc5d0\uc774\uc804\ud2b8\ub294 \uc561\uc158\uc744 \uc120\ud0dd\ud558\uace0, \ud658\uacbd\uc73c\ub85c\ubd80\ud130 \ubcf4\uc0c1\uacfc \ub2e4\uc74c \uc0c1\ud0dc\ub97c \ubc1b\uace0, \uc774\ub97c \ud1b5\ud574 \uc815\ucc45(policy)\uc744 \uac1c\uc120\ud569\ub2c8\ub2e4. RL\uc744 \uc774\ud574\ud558\uae30 \uc704\ud574\uc11c\ub294 \uba87 \uac00\uc9c0 \ud575\uc2ec \uac1c\ub150\uc744 \uc775\ud600\uc57c \ud569\ub2c8\ub2e4: \ud658\uacbd(Environment): \uc5d0\uc774\uc804\ud2b8\uac00 \uc0c1\ud638\uc791\uc6a9\ud558\ub294 \ub300\uc0c1\uc785\ub2c8\ub2e4. RL \ubb38\uc81c\ub97c \uc815\uc758\ud558\ub294 \ub370 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4. \uc0c1\ud0dc(State): \uc5d0\uc774\uc804\ud2b8\uac00 \ud604\uc7ac \ud658\uacbd\uc5d0\uc11c \uad00\uce21\ud558\ub294 \uc815\ubcf4\uc785\ub2c8\ub2e4. \ud589\ub3d9(Action): &hellip; \ub354 \ubcf4\uae30 &quot;37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/40498\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-04T01:52:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:39:01+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/40498\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/40498\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95\",\"datePublished\":\"2024-11-04T01:52:13+00:00\",\"dateModified\":\"2024-11-26T06:39:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/40498\/\"},\"wordCount\":78,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\uac15\ud654\ud559\uc2b5\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/40498\/\",\"url\":\"https:\/\/atmokpo.com\/w\/40498\/\",\"name\":\"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-04T01:52:13+00:00\",\"dateModified\":\"2024-11-26T06:39:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/40498\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/40498\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/40498\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/40498\/","og_locale":"ko_KR","og_type":"article","og_title":"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \uac15\ud654\ud559\uc2b5(RL) \uc18c\uac1c \uac15\ud654\ud559\uc2b5( Reinforcement Learning, RL)\uc740 \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uacfc \uc0c1\ud638\uc791\uc6a9\ud558\uba74\uc11c \ubcf4\uc0c1\uc744 \ucd5c\ub300\ud654\ud558\ub294 \ubc29\ud5a5\uc73c\ub85c \ud559\uc2b5\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c \uc5d0\uc774\uc804\ud2b8\ub294 \uc561\uc158\uc744 \uc120\ud0dd\ud558\uace0, \ud658\uacbd\uc73c\ub85c\ubd80\ud130 \ubcf4\uc0c1\uacfc \ub2e4\uc74c \uc0c1\ud0dc\ub97c \ubc1b\uace0, \uc774\ub97c \ud1b5\ud574 \uc815\ucc45(policy)\uc744 \uac1c\uc120\ud569\ub2c8\ub2e4. RL\uc744 \uc774\ud574\ud558\uae30 \uc704\ud574\uc11c\ub294 \uba87 \uac00\uc9c0 \ud575\uc2ec \uac1c\ub150\uc744 \uc775\ud600\uc57c \ud569\ub2c8\ub2e4: \ud658\uacbd(Environment): \uc5d0\uc774\uc804\ud2b8\uac00 \uc0c1\ud638\uc791\uc6a9\ud558\ub294 \ub300\uc0c1\uc785\ub2c8\ub2e4. RL \ubb38\uc81c\ub97c \uc815\uc758\ud558\ub294 \ub370 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4. \uc0c1\ud0dc(State): \uc5d0\uc774\uc804\ud2b8\uac00 \ud604\uc7ac \ud658\uacbd\uc5d0\uc11c \uad00\uce21\ud558\ub294 \uc815\ubcf4\uc785\ub2c8\ub2e4. \ud589\ub3d9(Action): &hellip; \ub354 \ubcf4\uae30 \"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95\"","og_url":"https:\/\/atmokpo.com\/w\/40498\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-04T01:52:13+00:00","article_modified_time":"2024-11-26T06:39:01+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"3\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/40498\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/40498\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95","datePublished":"2024-11-04T01:52:13+00:00","dateModified":"2024-11-26T06:39:01+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/40498\/"},"wordCount":78,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\uac15\ud654\ud559\uc2b5"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/40498\/","url":"https:\/\/atmokpo.com\/w\/40498\/","name":"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-04T01:52:13+00:00","dateModified":"2024-11-26T06:39:01+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/40498\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/40498\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/40498\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"37. Python\uc744 \ud65c\uc6a9\ud55c \uac15\ud654\ud559\uc2b5 \ud658\uacbd \uad6c\ucd95 \ubc0f \uc5d0\uc774\uc804\ud2b8 \ud559\uc2b5, OpenAI Gym \ub4f1 RL \ud658\uacbd \uc124\uc815 \ubc29\ubc95"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":40514,"url":"https:\/\/atmokpo.com\/w\/40514\/","url_meta":{"origin":40498,"position":0},"title":"57. \uac15\ud654\ud559\uc2b5 \ud559\uc2b5 \uc790\ub8cc \ubc0f \ucee4\ubba4\ub2c8\ud2f0 \ub9ac\uc18c\uc2a4, \ucd94\ucc9c \ub3c4\uc11c, \uc628\ub77c\uc778 \uac15\uc758, \ud29c\ud1a0\ub9ac\uc5bc","author":"root","date":"2024\ub144 11\uc6d4 04\uc77c","format":false,"excerpt":"\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 \uc800\uc790: \uc870\uad11\ud615 1. \uac15\ud654\ud559\uc2b5\uc758 \uc774\ud574 \uac15\ud654\ud559\uc2b5(Reinforcement Learning, RL)\uc740 \uc778\uacf5\uc9c0\ub2a5\uc758 \ud55c \ubd84\uc57c\ub85c, \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uacfc \uc0c1\ud638\uc791\uc6a9 \ud558\uba70 \ucd5c\uc801\uc758 \ud589\ub3d9\uc744 \ud559\uc2b5\ud558\ub294 \uc54c\uace0\ub9ac\uc998\uc785\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c \uc5d0\uc774\uc804\ud2b8\ub294 \ubcf4\uc0c1\uc744 \uc5bb\uae30 \uc704\ud574 \uc5ec\ub7ec \uac00\uc9c0 \ud589\ub3d9\uc744 \uc2dc\ub3c4\ud558\uace0 \uacb0\uacfc\ub97c \ubc14\ud0d5\uc73c\ub85c \ud559\uc2b5\ud569\ub2c8\ub2e4. \uac15\ud654\ud559\uc2b5\uc758 \ub300\ud45c\uc801\uc778 \ud2b9\uc9d5\uc740 \uc2dc\ud5d8\uacfc \uc624\ub958(trial and error) \ud559\uc2b5 \ubc29\uc2dd\uacfc \uc7a5\uae30\uc801\uc778 \ubcf4\uc0c1(long-term reward) \ucd5c\uc801\ud654\uc785\ub2c8\ub2e4. 2. \uac15\ud654\ud559\uc2b5\uc758\u2026","rel":"","context":"&quot;\uac15\ud654\ud559\uc2b5&quot;\uc5d0\uc11c","block_context":{"text":"\uac15\ud654\ud559\uc2b5","link":"https:\/\/atmokpo.com\/w\/category\/%ea%b0%95%ed%99%94%ed%95%99%ec%8a%b5\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":40484,"url":"https:\/\/atmokpo.com\/w\/40484\/","url_meta":{"origin":40498,"position":1},"title":"33. \ucee4\ub9ac\ud058\ub7fc \ud559\uc2b5(Curriculum Learning)\uc73c\ub85c \ub2e8\uacc4\uc801 \ud559\uc2b5 \uad6c\ud604\ud558\uae30, \ucee4\ub9ac\ud058\ub7fc \ud559\uc2b5\uc758 \uc6d0\ub9ac\uc640 \uc7a5\uc810","author":"root","date":"2024\ub144 11\uc6d4 04\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: 2024\ub144 11\uc6d4 26\uc77c 1. \uc11c\ub860 \uac15\ud654\ud559\uc2b5(Deep Reinforcement Learning, DRL)\uc740 \ubcf5\uc7a1\ud55c \ud658\uacbd\uc5d0\uc11c \ucd5c\uc801\uc758 \ud589\ub3d9\uc744 \ud559\uc2b5\ud558\uae30 \uc704\ud55c \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \uc774\ub7ec\ud55c \ud559\uc2b5 \uacfc\uc815\uc740 \ub9e4\uc6b0 \ube44\ud6a8\uc728\uc801\uc77c \uc218 \uc788\uc73c\uba70, \ud2b9\ud788 \ud559\uc2b5\ud558\ub294 \uc5d0\uc774\uc804\ud2b8\uac00 \ucc98\uc74c\ubd80\ud130 \ubcf5\uc7a1\ud55c \uc791\uc5c5\uc744 \ucc98\ub9ac\ud574\uc57c \ud560 \uacbd\uc6b0 \ub354\uc6b1 \uadf8\ub7ec\ud569\ub2c8\ub2e4. \uc774\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud55c \uc811\uadfc \ubc29\ubc95 \uc911 \ud558\ub098\uac00 \ubc14\ub85c \ucee4\ub9ac\ud058\ub7fc \ud559\uc2b5(Curriculum Learning)\uc785\ub2c8\ub2e4.\u2026","rel":"","context":"&quot;\uac15\ud654\ud559\uc2b5&quot;\uc5d0\uc11c","block_context":{"text":"\uac15\ud654\ud559\uc2b5","link":"https:\/\/atmokpo.com\/w\/category\/%ea%b0%95%ed%99%94%ed%95%99%ec%8a%b5\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":40452,"url":"https:\/\/atmokpo.com\/w\/40452\/","url_meta":{"origin":40498,"position":2},"title":"4. \uac15\ud654\ud559\uc2b5\uacfc \ub2e4\ub978 \uba38\uc2e0\ub7ec\ub2dd \uae30\ubc95\uc758 \ube44\uad50, \uac15\ud654\ud559\uc2b5\uc758 \uc7a5\uc810\uacfc \ub2e8\uc810","author":"root","date":"2024\ub144 11\uc6d4 04\uc77c","format":false,"excerpt":"\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 \uc791\uc131\uc790: \uc870\uad11\ud615 1. \uc11c\ub860 \uba38\uc2e0\ub7ec\ub2dd\uc740 \ub2e4\uc591\ud55c \uae30\ubc95\uc744 \ud1b5\ud574 \ub370\uc774\ud130\ub97c \ud559\uc2b5\ud558\uace0 \uc774\ub97c \uae30\ubc18\uc73c\ub85c \uc608\uce21 \ud639\uc740 \uacb0\uc815\uc744 \ub0b4\ub9ac\ub294 \uae30\uc220\uc774\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 \uac15\ud654\ud559\uc2b5\uc740 \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uacfc \uc0c1\ud638\uc791\uc6a9\ud558\uba70 \ubcf4\uc0c1 \uc2e0\ud638\ub97c \ud1b5\ud574 \ud559\uc2b5\ud558\ub294 \ubc29\uc2dd\uc73c\ub85c, \ub2e4\ub978 \uba38\uc2e0\ub7ec\ub2dd \uae30\ubc95\ub4e4\uacfc\ub294 \ud655\uc5f0\ud788 \ub2e4\ub978 \ud2b9\uc9d5\uc744 \uac00\uc9c4\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 \uac15\ud654\ud559\uc2b5\uacfc \ub2e4\ub978 \uba38\uc2e0\ub7ec\ub2dd \uae30\ubc95\ub4e4\uc744 \ube44\uad50\ud558\uace0, \uac15\ud654\ud559\uc2b5\uc758 \uc7a5\uc810\uacfc \ub2e8\uc810\uc744 \uc2ec\ub3c4 \uc788\uac8c\u2026","rel":"","context":"&quot;\uac15\ud654\ud559\uc2b5&quot;\uc5d0\uc11c","block_context":{"text":"\uac15\ud654\ud559\uc2b5","link":"https:\/\/atmokpo.com\/w\/category\/%ea%b0%95%ed%99%94%ed%95%99%ec%8a%b5\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":40512,"url":"https:\/\/atmokpo.com\/w\/40512\/","url_meta":{"origin":40498,"position":3},"title":"54. \ubbf8\ub798\uc758 \uac15\ud654\ud559\uc2b5  \ucd5c\uc2e0 \uc5f0\uad6c \ub3d9\ud5a5\uacfc \ud5a5\ud6c4 \uc804\ub9dd, \uac15\ud654\ud559\uc2b5\uc758 \ubbf8\ub798 \uac00\ub2a5\uc131\uacfc \uc751\uc6a9 \ubd84\uc57c","author":"root","date":"2024\ub144 11\uc6d4 04\uc77c","format":false,"excerpt":"\uac15\ud654\ud559\uc2b5\uc740 \uc778\uacf5\uc9c0\ub2a5 \ubd84\uc57c\uc5d0\uc11c \uac00\uc7a5 \ud765\ubbf8\ub85c\uc6b4 \uc601\uc5ed \uc911 \ud558\ub098\ub85c, \uae30\uacc4 \ud559\uc2b5\uc758 \ud55c \ubd84\uc57c\ub85c\uc368, \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uacfc \uc0c1\ud638\uc791\uc6a9\ud558\uba70 \ucd5c\uc801\uc758 \ud589\ub3d9\uc744 \ubc30\uc6b0\ub294 \uacfc\uc815\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 \uac15\ud654\ud559\uc2b5\uc758 \ucd5c\uc2e0 \uc5f0\uad6c \ub3d9\ud5a5\uacfc \uc804\ub9dd, \uadf8\ub9ac\uace0 \uc774 \uae30\uc220\uc774 \uc801\uc6a9\ub420 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c \ubd84\uc57c\ub97c \uc2ec\uce35\uc801\uc73c\ub85c \ud0d0\uad6c\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uac15\ud654\ud559\uc2b5\uc758 \uac1c\uc694 \uac15\ud654\ud559\uc2b5\uc740 \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uc5d0\uc11c\uc758 \uacbd\ud5d8\uc744 \ud1b5\ud574 \ubcf4\uc0c1\uc744 \ucd5c\ub300\ud654\ud558\ub294 \ubc29\ud5a5\uc73c\ub85c \ud589\ub3d9\uc744 \ud559\uc2b5\ud558\ub294 \uacfc\uc815\uc785\ub2c8\ub2e4.\u2026","rel":"","context":"&quot;\uac15\ud654\ud559\uc2b5&quot;\uc5d0\uc11c","block_context":{"text":"\uac15\ud654\ud559\uc2b5","link":"https:\/\/atmokpo.com\/w\/category\/%ea%b0%95%ed%99%94%ed%95%99%ec%8a%b5\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":40460,"url":"https:\/\/atmokpo.com\/w\/40460\/","url_meta":{"origin":40498,"position":4},"title":"8. \uc0c1\ud0dc \uacf5\uac04(State Space) \uc124\uacc4\ud558\uae30, \uc0c1\ud0dc \uc778\ucf54\ub529 \uae30\ubc95 (\ubca1\ud130\ud654, \uc6d0-\ud56b \uc778\ucf54\ub529 \ub4f1)","author":"root","date":"2024\ub144 11\uc6d4 04\uc77c","format":false,"excerpt":"\uac15\ud654\ud559\uc2b5\uc5d0\uc11c \uac00\uc7a5 \uc911\uc694\ud55c \uac1c\ub150 \uc911 \ud558\ub098\ub294 \uc0c1\ud0dc \uacf5\uac04(State Space) \uc124\uacc4\uc785\ub2c8\ub2e4. \uc0c1\ud0dc\ub294 \uc5d0\uc774\uc804\ud2b8\uac00 \ud658\uacbd\uc5d0\uc11c \uc5b4\ub5a4 \uc0c1\ud669\uc5d0 \ucc98\ud574 \uc788\ub294\uc9c0\ub97c \ub098\ud0c0\ub0b4\uba70, \uc0c1\ud0dc \uacf5\uac04\uc740 \uac00\ub2a5\ud55c \ubaa8\ub4e0 \uc0c1\ud0dc\uc758 \uc9d1\ud569\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 \uc0c1\ud0dc \uacf5\uac04 \uc124\uacc4\uc758 \uc911\uc694\uc131\uacfc \ud568\uaed8 \ub2e4\uc591\ud55c \uc0c1\ud0dc \uc778\ucf54\ub529 \uae30\ubc95, \ud2b9\ud788 \ubca1\ud130\ud654\uc640 \uc6d0-\ud56b \uc778\ucf54\ub529\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc0c1\ud0dc \uacf5\uac04 \uc124\uacc4\uc758 \uc911\uc694\uc131 \uc0c1\ud0dc \uacf5\uac04\uc740 \uac15\ud654\ud559\uc2b5 \uc5d0\uc774\uc804\ud2b8\uac00\u2026","rel":"","context":"&quot;\uac15\ud654\ud559\uc2b5&quot;\uc5d0\uc11c","block_context":{"text":"\uac15\ud654\ud559\uc2b5","link":"https:\/\/atmokpo.com\/w\/category\/%ea%b0%95%ed%99%94%ed%95%99%ec%8a%b5\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":29369,"url":"https:\/\/atmokpo.com\/w\/29369\/","url_meta":{"origin":40498,"position":5},"title":"\uba38\uc2e0\ub7ec\ub2dd \ubc0f \ub525\ub7ec\ub2dd \uc54c\uace0\ub9ac\uc998 \ud2b8\ub808\uc774\ub529, \ud150\uc11c\ubcf4\ub4dc\ub97c \uc0ac\uc6a9\ud574 \uc784\ubca0\ub529 \uc2dc\uac01\ud654","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"2023\ub144 X\uc6d4 X\uc77c | \uc791\uc131\uc790: \uc870\uad11\ud615 \uc11c\ub860 \uae08\uc735 \uc2dc\uc7a5\uc5d0\uc11c\uc758 \uc790\ub3d9\ud654\ub41c \ud2b8\ub808\uc774\ub529\uc740 \uba38\uc2e0\ub7ec\ub2dd \ubc0f \ub525\ub7ec\ub2dd \uae30\uc220\uc758 \ubc1c\uc804\uacfc \ud568\uaed8 \uadf8 \uc758\ubbf8\uac00 \ub354\uc6b1 \uac15\uc870\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ub370\uc774\ud130\uc758 \uc591\uacfc \ubcf5\uc7a1\uc131\uc774 \uc99d\uac00\ud558\uba74\uc11c \uc804\ud1b5\uc801\uc778 \ubc29\ubc95\uc73c\ub85c\ub294 \uc5bb\uae30 \ud798\ub4e0 \uc778\uc0ac\uc774\ud2b8\ub97c \uc81c\uacf5\ud560 \uc218 \uc788\ub294 \uae30\uacc4\ud559\uc2b5 \uae30\ubc18\uc758 \ud2b8\ub808\uc774\ub529 \uc54c\uace0\ub9ac\uc998\uc774 \ub300\ub450\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uba38\uc2e0\ub7ec\ub2dd\uacfc \ub525\ub7ec\ub2dd \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud55c \ud2b8\ub808\uc774\ub529 \uc804\ub7b5\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uace0,\u2026","rel":"","context":"&quot;\ub525\ub7ec\ub2dd \uba38\uc2e0\ub7ec\ub2dd \uc790\ub3d9 \ud2b8\ub808\uc774\ub529&quot;\uc5d0\uc11c","block_context":{"text":"\ub525\ub7ec\ub2dd \uba38\uc2e0\ub7ec\ub2dd \uc790\ub3d9 \ud2b8\ub808\uc774\ub529","link":"https:\/\/atmokpo.com\/w\/category\/%eb%94%a5%eb%9f%ac%eb%8b%9d-%eb%a8%b8%ec%8b%a0%eb%9f%ac%eb%8b%9d-%ec%9e%90%eb%8f%99-%ed%8a%b8%eb%a0%88%ec%9d%b4%eb%94%a9\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/40498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=40498"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/40498\/revisions"}],"predecessor-version":[{"id":40499,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/40498\/revisions\/40499"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=40498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=40498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=40498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}