{"id":29967,"date":"2024-10-28T03:18:55","date_gmt":"2024-10-28T03:18:55","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=29967"},"modified":"2024-11-26T06:50:39","modified_gmt":"2024-11-26T06:50:39","slug":"%eb%94%a5%eb%9f%ac%eb%8b%9d-%ed%8c%8c%ec%9d%b4%ed%86%a0%ec%b9%98-%ea%b0%95%ec%a2%8c-%eb%a7%88%eb%a5%b4%ec%bd%94%ed%94%84-%ea%b2%b0%ec%a0%95-%ea%b3%bc%ec%a0%95","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/29967\/","title":{"rendered":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c,  \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815"},"content":{"rendered":"<p><body><\/p>\n<p>\ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815(Markov Decision Process, MDP)\uc740 \uac15\ud654 \ud559\uc2b5\uc758 \uae30\ucd08\uac00 \ub418\ub294 \uc911\uc694\ud55c \uc218\ud559\uc801 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. MDP\ub294 \uc5d0\uc774\uc804\ud2b8\uac00 \ud2b9\uc815 \ud658\uacbd\uc5d0\uc11c \ucd5c\uc801\uc758 \ud589\ub3d9\uc744 \uacb0\uc815\ud558\uae30 \uc704\ud574 \uc0ac\uc6a9\ud558\ub294 \ubaa8\ub378\uc785\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud305\uc5d0\uc11c\ub294 MDP\uc758 \uac1c\ub150\uc744 \uc774\ud574\ud558\uace0, \uc774\ub97c \ud30c\uc774\ud1a0\uce58(PyTorch)\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815(MDP) \uac1c\uc694<\/h2>\n<p>MDP\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uad6c\uc131 \uc694\uc18c\ub4e4\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\uc0c1\ud0dc \uacf5\uac04 (State space, S)<\/strong>: \uc5d0\uc774\uc804\ud2b8\uac00 \ucc98\ud574 \uc788\ub294 \ubaa8\ub4e0 \uac00\ub2a5\ud55c \uc0c1\ud0dc\uc758 \uc9d1\ud569\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\ud589\ub3d9 \uacf5\uac04 (Action space, A)<\/strong>: \uc5d0\uc774\uc804\ud2b8\uac00 \ud2b9\uc815 \uc0c1\ud0dc\uc5d0\uc11c \uc120\ud0dd\ud560 \uc218 \uc788\ub294 \ubaa8\ub4e0 \uac00\ub2a5\ud55c \ud589\ub3d9\uc758 \uc9d1\ud569\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\uc804\uc774 \ud655\ub960 (Transition probabilities, P)<\/strong>: \ud604\uc7ac \uc0c1\ud0dc\uc640 \ud589\ub3d9\uc5d0 \ub530\ub77c \ub2e4\uc74c \uc0c1\ud0dc\ub85c \uc804\uc774\ub420 \ud655\ub960\uc744 \uc815\uc758\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ubcf4\uc0c1 \ud568\uc218 (Reward function, R)<\/strong>: \uc5d0\uc774\uc804\ud2b8\uac00 \ud2b9\uc815 \uc0c1\ud0dc\uc5d0\uc11c \ud2b9\uc815 \ud589\ub3d9\uc744 \uc120\ud0dd\ud588\uc744 \ub54c \uc8fc\uc5b4\uc9c0\ub294 \ubcf4\uc0c1\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\ud560\uc778\uc728 (Discount factor, \u03b3)<\/strong>: \ubbf8\ub798\uc758 \ubcf4\uc0c1\uc774 \ud604\uc7ac\uc758 \ubcf4\uc0c1\ubcf4\ub2e4 \uc801\ub2e4\uace0 \uac00\uc815\ud560 \ub54c, \ubbf8\ub798 \ubcf4\uc0c1\uc774 \ud604\uc7ac \uac00\uce58\uc5d0 \ubbf8\uce58\ub294 \uc601\ud5a5\uc744 \uc870\uc808\ud558\ub294 \uac12\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. MDP\uc758 \uc218\ud559\uc801 \ubaa8\ub378\ub9c1<\/h2>\n<p>MDP\ub294 \uc0c1\ud0dc \uacf5\uac04, \ud589\ub3d9 \uacf5\uac04, \uc804\uc774 \ud655\ub960, \ubcf4\uc0c1 \ud568\uc218, \ud560\uc778\uc728 \ub4f1\uc744 \uc774\uc6a9\ud558\uc5ec \uc218\ud559\uc801\uc73c\ub85c \uc815\uc758\ub429\ub2c8\ub2e4. MDP\ub294 \ub2e4\uc74c\uc758 \uc694\uc18c\ub85c \ud45c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>MDP = (S, A, P, R, \u03b3)\ub85c \uc815\uc758\ub429\ub2c8\ub2e4.<\/li>\n<\/ul>\n<p>\uc5ec\uae30\uc11c, \uac01 \uc694\uc18c\uc5d0 \ub300\ud574 \uc880 \ub354 \uad6c\uccb4\uc801\uc73c\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n<h3>\uc0c1\ud0dc \uacf5\uac04 (S)<\/h3>\n<p>\uc0c1\ud0dc \uacf5\uac04\uc740 \uc5d0\uc774\uc804\ud2b8\uac00 \ucc98\ud560 \uc218 \uc788\ub294 \ubaa8\ub4e0 \uc0c1\ud0dc\uc758 \uc9d1\ud569\uc785\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ubc14\ub451 \uac8c\uc784\uc758 \uc0c1\ud0dc \uacf5\uac04\uc740 \ubaa8\ub4e0 \uac00\ub2a5\ud55c \ubc14\ub451\ud310\uc758 \uc0c1\ud0dc\uac00 \ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\ud589\ub3d9 \uacf5\uac04 (A)<\/h3>\n<p>\ud589\ub3d9 \uacf5\uac04\uc740 \uc5d0\uc774\uc804\ud2b8\uc758 \uc0c1\ud0dc\uc5d0 \ub530\ub77c \uc120\ud0dd\ud560 \uc218 \uc788\ub294 \ubaa8\ub4e0 \ud589\ub3d9\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ubc14\ub451 \uac8c\uc784\uc5d0\uc11c \uc5d0\uc774\uc804\ud2b8\ub294 \ud2b9\uc815 \uc704\uce58\uc5d0 \ub3cc\uc744 \ub193\ub294 \ud589\ub3d9\uc744 \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\uc804\uc774 \ud655\ub960 (P)<\/h3>\n<p>\uc804\uc774 \ud655\ub960\uc740 \ud604\uc7ac \uc0c1\ud0dc\uc640 \uc120\ud0dd\ud55c \ud589\ub3d9\uc5d0 \ub530\ub77c \ub2e4\uc74c \uc0c1\ud0dc\ub85c \uc804\uc774\ub420 \ud655\ub960\uc744 \ub098\ud0c0\ub0c5\ub2c8\ub2e4. \uc774\ub294 \uc218\ud559\uc801\uc73c\ub85c \ub2e4\uc74c\uacfc \uac19\uc774 \ud45c\ud604\ub429\ub2c8\ub2e4:<\/p>\n<pre><code>P(s', r | s, a)<\/code><\/pre>\n<p>\uc5ec\uae30\uc11c, <code>s'<\/code>\ub294 \ub2e4\uc74c \uc0c1\ud0dc, <code>r<\/code>\ub294 \ubcf4\uc0c1, <code>s<\/code>\ub294 \ud604\uc7ac \uc0c1\ud0dc, <code>a<\/code>\ub294 \uc120\ud0dd\ud55c \ud589\ub3d9\uc785\ub2c8\ub2e4.<\/p>\n<h3>\ubcf4\uc0c1 \ud568\uc218 (R)<\/h3>\n<p>\ubcf4\uc0c1 \ud568\uc218\ub294 \uc5d0\uc774\uc804\ud2b8\uac00 \ud2b9\uc815 \uc0c1\ud0dc\uc5d0\uc11c \ud2b9\uc815 \ud589\ub3d9\uc744 \uc120\ud0dd\ud588\uc744 \ub54c \uc8fc\uc5b4\uc9c4 \ubcf4\uc0c1\uc744 \ub098\ud0c0\ub0c5\ub2c8\ub2e4. \ubcf4\uc0c1\uc740 \uc5d0\uc774\uc804\ud2b8\uc758 \ubaa9\ud45c\ub97c \uc815\uc758\ud558\ub294 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4.<\/p>\n<h3>\ud560\uc778\uc728 (\u03b3)<\/h3>\n<p>\ud560\uc778\uc728 <code>\u03b3 (0 \u2264 \u03b3 &lt; 1)<\/code>\uc740 \ubbf8\ub798\uc758 \ubcf4\uc0c1\uc5d0 \ub300\ud55c \ud604\uc7ac \uac00\uce58\uc758 \uc601\ud5a5\uc744 \ubc18\uc601\ud569\ub2c8\ub2e4. <code>\u03b3<\/code>\uac00 0\uc5d0 \uac00\uae4c\uc6b8\uc218\ub85d \uc5d0\uc774\uc804\ud2b8\ub294 \uac00\uae4c\uc6b4 \ubbf8\ub798\uc758 \ubcf4\uc0c1\uc5d0 \ub354 \uc911\uc810\uc744 \ub450\uace0, 1\uc5d0 \uac00\uae4c\uc6b8\uc218\ub85d \uba3c \ubbf8\ub798\uc758 \ubcf4\uc0c1\uc5d0 \ub354 \uc911\uc810\uc744 \ub461\ub2c8\ub2e4.<\/p>\n<h2>3. MDP\uc758 \uc608\uc81c<\/h2>\n<p>\uc774\uc81c MDP\uc758 \uac1c\ub150\uc744 \uc774\ud574\ud588\uc73c\ubbc0\ub85c \uc608\uc81c\ub97c \ud1b5\ud574 \uc774\ub97c \uac15\ud654 \ud559\uc2b5 \ubb38\uc81c\uc5d0 \uc5b4\ub5bb\uac8c \uc801\uc6a9\ud560 \uc218 \uc788\ub294\uc9c0 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc5d0\ub294 \uac04\ub2e8\ud55c MDP \uc608\uc81c\ub97c \ud1b5\ud574 \ud6c8\ub828\ub41c \uac15\ud654 \ud559\uc2b5 \uc5d0\uc774\uc804\ud2b8\ub97c \ub9cc\ub4e4 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h3>3.1 \uac04\ub2e8\ud55c \uadf8\ub9ac\ub4dc \uc6d4\ub4dc \uc608\uc81c<\/h3>\n<p>\uadf8\ub9ac\ub4dc \uc6d4\ub4dc\ub294 4&#215;4 \uaca9\uc790\ub85c \uad6c\uc131\ub41c \uc138\uacc4\ub97c \ubaa8\ub378\ub9c1\ud55c \uac83\uc785\ub2c8\ub2e4. \uc5d0\uc774\uc804\ud2b8\ub294 \uac01 \uaca9\uc790\uc5d0 \uc704\uce58\ud558\uba70, \ud2b9\uc815 \ud589\ub3d9(\uc704, \uc544\ub798, \uc67c\ucabd, \uc624\ub978\ucabd)\uc744 \ud1b5\ud574 \uc774\ub3d9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc5d0\uc774\uc804\ud2b8\uc758 \ubaa9\ud45c\ub294 \uc624\ub978\ucabd \ud558\ub2e8 \uad6c\uc5ed(\ubaa9\ud45c \uc704\uce58)\uc5d0 \ub3c4\ub2ec\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h4>\uc0c1\ud0dc \ubc0f \ud589\ub3d9 \uc815\uc758<\/h4>\n<p>\uc774 \uadf8\ub9ac\ub4dc \uc6d4\ub4dc\uc5d0\uc11c:<\/p>\n<ul>\n<li>\uc0c1\ud0dc: 0\uc5d0\uc11c 15\uae4c\uc9c0\uc758 \uc22b\uc790\ub85c \uac01 \uaca9\uc790\ub97c \ud45c\ud604 (4&#215;4 \uaca9\uc790)<\/li>\n<li>\ud589\ub3d9: \uc704(0), \uc544\ub798(1), \uc67c\ucabd(2), \uc624\ub978\ucabd(3)<\/li>\n<\/ul>\n<h4>\ubcf4\uc0c1 \uc815\uc758<\/h4>\n<p>\uc5d0\uc774\uc804\ud2b8\uac00 \ubaa9\ud45c \uc0c1\ud0dc\uc5d0 \ub3c4\ub2ec\ud558\uba74 \ubcf4\uc0c1 +1\uc744 \uc8fc\uace0, \ub2e4\ub978 \uc0c1\ud0dc\uc5d0\uc11c\ub294 0\uc744 \uc90d\ub2c8\ub2e4.<\/p>\n<h2>4. \ud30c\uc774\ud1a0\uce58\ub85c MDP \uad6c\ud604\ud558\uae30<\/h2>\n<p>\uc774\uc81c \ud30c\uc774\ud1a0\uce58\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac15\ud654 \ud559\uc2b5 \uc5d0\uc774\uc804\ud2b8\ub97c \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uae30\ubcf8\uc801\uc73c\ub85c Q-\ub7ec\ub2dd \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud560 \uc608\uc815\uc785\ub2c8\ub2e4.<\/p>\n<h3>4.1 \ud658\uacbd \ucd08\uae30\ud654<\/h3>\n<p>\uc6b0\uc120, \uadf8\ub9ac\ub4dc \uc6d4\ub4dc\ub97c \uc0dd\uc131\ud558\ub294 \ud074\ub798\uc2a4\ub97c \uc815\uc758\ud569\uc2dc\ub2e4:<\/p>\n<pre><code>import numpy as np\n\nclass GridWorld:\n    def __init__(self, grid_size=4):\n        self.grid_size = grid_size\n        self.state = 0\n        self.goal_state = grid_size * grid_size - 1\n        self.actions = [0, 1, 2, 3]  # \uc704, \uc544\ub798, \uc67c\ucabd, \uc624\ub978\ucabd\n        self.rewards = np.zeros((grid_size * grid_size,))\n        self.rewards[self.goal_state] = 1  # \ubaa9\ud45c \uc9c0\uc810\uc5d0 \ub3c4\ub2ec \uc2dc\uc758 \ubcf4\uc0c1\n\n    def reset(self):\n        self.state = 0  # \uc2dc\uc791 \uc0c1\ud0dc\n        return self.state\n\n    def step(self, action):\n        x, y = divmod(self.state, self.grid_size)\n        if action == 0 and x &gt; 0:   # \uc704\n            x -= 1\n        elif action == 1 and x &lt; self.grid_size - 1:  # \uc544\ub798\n            x += 1\n        elif action == 2 and y &gt; 0:  # \uc67c\ucabd\n            y -= 1\n        elif action == 3 and y &lt; self.grid_size - 1:  # \uc624\ub978\ucabd\n            y += 1\n        self.state = x * self.grid_size + y\n        return self.state, self.rewards[self.state]\n<\/code><\/pre>\n<h3>4.2 Q-\ub7ec\ub2dd \uc54c\uace0\ub9ac\uc998 \uad6c\ud604<\/h3>\n<p>Q-\ub7ec\ub2dd\uc744 \ud1b5\ud574 \uc5d0\uc774\uc804\ud2b8\ub97c \ud6c8\ub828\uc2dc\ud0a4\uaca0\uc2b5\ub2c8\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 Q-\ub7ec\ub2dd \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud558\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>import torch\nimport torch.nn as nn\nimport torch.optim as optim\n\nclass QNetwork(nn.Module):\n    def __init__(self, state_size, action_size):\n        super(QNetwork, self).__init__()\n        self.fc1 = nn.Linear(state_size, 24)\n        self.fc2 = nn.Linear(24, 24)\n        self.fc3 = nn.Linear(24, action_size)\n\n    def forward(self, x):\n        x = torch.relu(self.fc1(x))\n        x = torch.relu(self.fc2(x))\n        return self.fc3(x)\n\ndef train_agent(episodes, max_steps):\n    env = GridWorld()\n    state_size = env.grid_size * env.grid_size\n    action_size = len(env.actions)\n    \n    q_network = QNetwork(state_size, action_size)\n    optimizer = optim.Adam(q_network.parameters(), lr=0.001)\n    criterion = nn.MSELoss()\n\n    for episode in range(episodes):\n        state = env.reset()\n        total_reward = 0\n        for step in range(max_steps):\n            state_tensor = torch.eye(state_size)[state]\n            q_values = q_network(state_tensor)\n            \n            action = np.argmax(q_values.detach().numpy())  # epsilon-greedy \uc815\ucc45\n            next_state, reward = env.step(action)\n            total_reward += reward\n            \n            next_state_tensor = torch.eye(state_size)[next_state]\n            target = reward + 0.99 * torch.max(q_network(next_state_tensor)).detach()\n            loss = criterion(q_values[action], target)\n            \n            optimizer.zero_grad()\n            loss.backward()\n            optimizer.step()\n\n            if next_state == env.goal_state:\n                break\n            \n            state = next_state\n        print(f\"Episode {episode+1}: Total Reward = {total_reward}\")\n<\/code><\/pre>\n<h2>5. \ub9c8\ubb34\ub9ac<\/h2>\n<p>\uc774\ubc88 \ud3ec\uc2a4\ud305\uc5d0\uc11c\ub294 \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815(MDP)\uc758 \uac1c\ub150\uacfc \uc774\ub97c \ud30c\uc774\ud1a0\uce58\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. MDP\ub294 \uac15\ud654 \ud559\uc2b5\uc758 \uae30\ucd08\uac00 \ub418\ub294 \uc911\uc694\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc774\uba70, \uc2e4\uc81c \uac15\ud654 \ud559\uc2b5 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub370 \uc788\uc5b4 \ud544\uc218\uc801\uc73c\ub85c \uc774\ud574\ud574\uc57c \ud560 \uac1c\ub150\uc785\ub2c8\ub2e4. \uc5f0\uc2b5\uc744 \ud1b5\ud574 MDP\uc640 \uac15\ud654 \ud559\uc2b5\uc744 \ub354 \uae4a\uc774 \uc774\ud574\ud558\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p>\ucd94\uac00\uc801\uc73c\ub85c, \ub354 \ubcf5\uc7a1\ud55c MDP \ubb38\uc81c\uc640 \ud559\uc2b5 \uc54c\uace0\ub9ac\uc998\ub4e4\uc744 \ub2e4\ub8e8\uc5b4 \ubcf4\uc2dc\uae30\ub97c \uad8c\uc7a5\ud569\ub2c8\ub2e4. \ud30c\uc774\ud1a0\uce58\uc640 \uac19\uc740 \ub3c4\uad6c\ub97c \uc0ac\uc6a9\ud558\uba74\uc11c \ub2e4\uc591\ud55c \ud658\uacbd\uc744 \uad6c\ud604\ud558\uace0, \uc5d0\uc774\uc804\ud2b8\ub97c \ud6c8\ub828\uc2dc\ud0a4\uba70, \uc790\uc2e0\ub9cc\uc758 \uac15\ud654 \ud559\uc2b5 \ubaa8\ub378\uc744 \ub9cc\ub4e4\uc5b4 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<footer>\n<p>\uc774 \ud3ec\uc2a4\ud305\uc774 \ub3c4\uc6c0\uc774 \ub418\uc5c8\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4. \uad81\uae08\ud55c \uc810\uc774 \uc788\uc73c\uc2dc\uba74 \ub313\uae00\uc744 \ub0a8\uaca8\uc8fc\uc138\uc694!<\/p>\n<\/footer>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815(Markov Decision Process, MDP)\uc740 \uac15\ud654 \ud559\uc2b5\uc758 \uae30\ucd08\uac00 \ub418\ub294 \uc911\uc694\ud55c \uc218\ud559\uc801 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. MDP\ub294 \uc5d0\uc774\uc804\ud2b8\uac00 \ud2b9\uc815 \ud658\uacbd\uc5d0\uc11c \ucd5c\uc801\uc758 \ud589\ub3d9\uc744 \uacb0\uc815\ud558\uae30 \uc704\ud574 \uc0ac\uc6a9\ud558\ub294 \ubaa8\ub378\uc785\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud305\uc5d0\uc11c\ub294 MDP\uc758 \uac1c\ub150\uc744 \uc774\ud574\ud558\uace0, \uc774\ub97c \ud30c\uc774\ud1a0\uce58(PyTorch)\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815(MDP) \uac1c\uc694 MDP\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uad6c\uc131 \uc694\uc18c\ub4e4\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uc2b5\ub2c8\ub2e4: \uc0c1\ud0dc \uacf5\uac04 (State space, S): \uc5d0\uc774\uc804\ud2b8\uac00 \ucc98\ud574 \uc788\ub294 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/29967\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c,  \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815&#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":[33],"tags":[],"class_list":["post-29967","post","type-post","status-publish","format-standard","hentry","category-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815 - \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\/29967\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815(Markov Decision Process, MDP)\uc740 \uac15\ud654 \ud559\uc2b5\uc758 \uae30\ucd08\uac00 \ub418\ub294 \uc911\uc694\ud55c \uc218\ud559\uc801 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. MDP\ub294 \uc5d0\uc774\uc804\ud2b8\uac00 \ud2b9\uc815 \ud658\uacbd\uc5d0\uc11c \ucd5c\uc801\uc758 \ud589\ub3d9\uc744 \uacb0\uc815\ud558\uae30 \uc704\ud574 \uc0ac\uc6a9\ud558\ub294 \ubaa8\ub378\uc785\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud305\uc5d0\uc11c\ub294 MDP\uc758 \uac1c\ub150\uc744 \uc774\ud574\ud558\uace0, \uc774\ub97c \ud30c\uc774\ud1a0\uce58(PyTorch)\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815(MDP) \uac1c\uc694 MDP\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uad6c\uc131 \uc694\uc18c\ub4e4\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uc2b5\ub2c8\ub2e4: \uc0c1\ud0dc \uacf5\uac04 (State space, S): \uc5d0\uc774\uc804\ud2b8\uac00 \ucc98\ud574 \uc788\ub294 &hellip; \ub354 \ubcf4\uae30 &quot;\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/29967\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-28T03:18:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:50:39+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=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/29967\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/29967\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815\",\"datePublished\":\"2024-10-28T03:18:55+00:00\",\"dateModified\":\"2024-11-26T06:50:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/29967\/\"},\"wordCount\":49,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\ud30c\uc774\ud1a0\uce58 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/29967\/\",\"url\":\"https:\/\/atmokpo.com\/w\/29967\/\",\"name\":\"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-28T03:18:55+00:00\",\"dateModified\":\"2024-11-26T06:50:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/29967\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/29967\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/29967\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815\"}]},{\"@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":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815 - \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\/29967\/","og_locale":"ko_KR","og_type":"article","og_title":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815(Markov Decision Process, MDP)\uc740 \uac15\ud654 \ud559\uc2b5\uc758 \uae30\ucd08\uac00 \ub418\ub294 \uc911\uc694\ud55c \uc218\ud559\uc801 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. MDP\ub294 \uc5d0\uc774\uc804\ud2b8\uac00 \ud2b9\uc815 \ud658\uacbd\uc5d0\uc11c \ucd5c\uc801\uc758 \ud589\ub3d9\uc744 \uacb0\uc815\ud558\uae30 \uc704\ud574 \uc0ac\uc6a9\ud558\ub294 \ubaa8\ub378\uc785\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud305\uc5d0\uc11c\ub294 MDP\uc758 \uac1c\ub150\uc744 \uc774\ud574\ud558\uace0, \uc774\ub97c \ud30c\uc774\ud1a0\uce58(PyTorch)\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815(MDP) \uac1c\uc694 MDP\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uad6c\uc131 \uc694\uc18c\ub4e4\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uc2b5\ub2c8\ub2e4: \uc0c1\ud0dc \uacf5\uac04 (State space, S): \uc5d0\uc774\uc804\ud2b8\uac00 \ucc98\ud574 \uc788\ub294 &hellip; \ub354 \ubcf4\uae30 \"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815\"","og_url":"https:\/\/atmokpo.com\/w\/29967\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-28T03:18:55+00:00","article_modified_time":"2024-11-26T06:50:39+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":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/29967\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/29967\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815","datePublished":"2024-10-28T03:18:55+00:00","dateModified":"2024-11-26T06:50:39+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/29967\/"},"wordCount":49,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\ud30c\uc774\ud1a0\uce58 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/29967\/","url":"https:\/\/atmokpo.com\/w\/29967\/","name":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-28T03:18:55+00:00","dateModified":"2024-11-26T06:50:39+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/29967\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/29967\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/29967\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, \ub9c8\ub974\ucf54\ud504 \uacb0\uc815 \uacfc\uc815"}]},{"@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":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/29967","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=29967"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/29967\/revisions"}],"predecessor-version":[{"id":29968,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/29967\/revisions\/29968"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=29967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=29967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=29967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}