n = len(nums)๐ฎ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import torch | |
| import torch.nn as nn | |
| import torch.optim as optim | |
| from torch.utils.data import DataLoader | |
| import torchvision | |
| import torchvision.transforms as transforms | |
| from torchvision.utils import make_grid, save_image | |
| import matplotlib.pyplot as plt | |
| import torch.nn.functional as F |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #1. | |
| ์๋ ํ์ธ์. 10์กฐ ๋ฐํ๋ฅผ ์์ํ๊ฒ ์ต๋๋ค. | |
| ์ ํฌ๋ "์์ฑ-์ด๋ฏธ์ง ๋ฉํฐ๋ชจ๋ฌ์ ํ์ฉํ์ฌ ์์ฑ๊ณผ ๋งค์นญ๋๋ ์ธ๋ฌผ์ ์ถ๋ก ํ๋ AI ๋ชจ๋ธ"์ด๋ผ๋ ์ฃผ์ ๋ก ์ธ๋ฏธ๋ ์ฐ๊ตฌ๋ฅผ ์งํํ๊ณ ์ ํฉ๋๋ค. | |
| #2. | |
| ๋จผ์ ํ๋ก์ ํธ ๊ฐ์๋ฅผ ์ค๋ช ๋๋ฆฐ ํ, ๋ด์ฉ๊ณผ ์์ฉ, ์ผ์ ์์ผ๋ก ๋ฐํ๋ฅผ ์งํํ๊ฒ ์ต๋๋ค. | |
| #3. |
1. ๋ค์ ๊ฐ๋ ๋ค: ์ธ๊ณต์ง๋ฅ(AI), ๋จธ์ ๋ฌ๋(ML), ๋ฅ๋ฌ๋ (DL)์ ๊ด๊ณ๋ฅผ ์ค๋ช ํ๊ณ , ๊ฐ๊ฐ ๋ํ์ ์ธ ์์๋ฅผ ํ๋์ฉ ๋ค์ด ์์ ํ์์ค
$$ ๋ฅ๋ฌ๋ \subset ๋จธ์ ๋ฌ๋ \subset ์ธ๊ณต์ง๋ฅ$$3
์ธ๊ณต์ง๋ฅ์ ์ธ๊ฐ์ฒ๋ผ ์ฌ๊ณ ํ๊ณ ํ๋ํ๋ ๊ธฐ๊ณ๋ฅผ ๋ง๋๋ ๊ธฐ์ ์ ๋ฐ์ ์๋ฏธํ๋ค.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| import numpy as np | |
| from visualize_train import draw_value_image, draw_policy_image | |
| # left, right, up, down | |
| ACTIONS = [np.array([0, -1]), | |
| np.array([0, 1]), | |
| np.array([-1, 0]), |
NewerOlder