Graduate School/Mathematics for AI
-
MDP example¶State Value Function Changes in Policy Iterations¶Import Library¶In [1]: import numpy as np Grid World¶In [2]: BOARD_ROWS = 3 # grid world 세로BOARD_COLS = 3 # grid world 가로GAMMA = 1.0POSSIBLE_ACTIONS = [0, 1, 2, 3] # 좌, 우, 상, 하ACTIONS = [(-1, 0), (1, 0), (0, -1), (0, 1)] # 좌표로 나타낸 행동REWARDS = [] Environment¶In [3]: class Env: def __init__(self): self.heig..
Markov Decision Process ExampleMDP example¶State Value Function Changes in Policy Iterations¶Import Library¶In [1]: import numpy as np Grid World¶In [2]: BOARD_ROWS = 3 # grid world 세로BOARD_COLS = 3 # grid world 가로GAMMA = 1.0POSSIBLE_ACTIONS = [0, 1, 2, 3] # 좌, 우, 상, 하ACTIONS = [(-1, 0), (1, 0), (0, -1), (0, 1)] # 좌표로 나타낸 행동REWARDS = [] Environment¶In [3]: class Env: def __init__(self): self.heig..
2024.09.10 -
탐색적 데이터 분석과 데이터 시각화 실습¶In [1]: !pip install -q --upgrade matplotlib /bin/bash: pip: command not found들어가기¶‘통계학자’ 나이팅게일의 ‘로즈 다이어그램’In [2]: from packaging import versionimport matplotlib as mplimport matplotlib.pyplot as pltimport matplotlib_inline.backend_inlineimport numpy as npimport pandas as pdassert version.parse(mpl.__version__) >= version.Version("3.5"), ( "에러가 난다면 첫..
Exploratory data analysis and visualization탐색적 데이터 분석과 데이터 시각화 실습¶In [1]: !pip install -q --upgrade matplotlib /bin/bash: pip: command not found들어가기¶‘통계학자’ 나이팅게일의 ‘로즈 다이어그램’In [2]: from packaging import versionimport matplotlib as mplimport matplotlib.pyplot as pltimport matplotlib_inline.backend_inlineimport numpy as npimport pandas as pdassert version.parse(mpl.__version__) >= version.Version("3.5"), ( "에러가 난다면 첫..
2024.09.10 -
hr_data_binary_classification¶IBM HR data¶https://www.kaggle.com/datasets/pavansubhasht/ibm-hr-analytics-attrition-dataset구글 드라이브 연동¶In [ ]: from google.colab import drivedrive.mount('/content/drive') Mounted at /content/drive1. 문제 파악 및 목표 설정¶2. 데이터 수집 및 전처리¶In [ ]: import numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsimport missingno as ms..
IBM HR data Binary Classificationhr_data_binary_classification¶IBM HR data¶https://www.kaggle.com/datasets/pavansubhasht/ibm-hr-analytics-attrition-dataset구글 드라이브 연동¶In [ ]: from google.colab import drivedrive.mount('/content/drive') Mounted at /content/drive1. 문제 파악 및 목표 설정¶2. 데이터 수집 및 전처리¶In [ ]: import numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsimport missingno as ms..
2024.09.10