전체 글 (33) 썸네일형 리스트형 24.06.12 Review(Decision Tree/ Random Tree) Decision Tree(의사결정나무) **이전 study 참고https://sports-lover-94.tistory.com/15 24.05.27 알고리즘 개념(Decision Tree)Algorithm 종류Decision TreeClassfication/ Regression 모두 가능최대 장점: 미리 예측할 수 있음 (초반에 많이 사용) = set of rules(일련의 규칙)을 알려줌e.g. 알파고의 경우 "여기에 둬라"라는 답만 줄뿐, "왜"sports-lover-94.tistory.com어디까지 tree를 만들어야할까? Coding (Iris data)# package importfrom sklearn.datasets import load_irisfrom sklearn.model_selecti.. 24.06.11 Review (Sampling/Preparation/K-NN/Model Evaluation) Data Sampling 단순 무작위 samplingimport numpy as npimport pandas as pd# 임의의 데이터 생성data = pd.DataFrame({ 'id': range(1, 101), # 1부터 100까지의 id 'value': np.random.rand(100) # 임의의 값})# 단순 무작위 샘플링으로 10개의 샘플 선택sample_random = data.sample(n=10)print(sample_random)계통 sampling# 계통 샘플링을 위한 간격(k) 계산k = len(data) // 10 # 예를 들어, 전체 데이터에서 10개의 샘플을 선택하고자 할 때의 간격# 시작점을 무작위로 선택start = np.random.randint(0, k.. 24.06.10 Review (Summary/ Linear Regression with Pytorch) Overall Load MapOverall process for data analysisMining Algorism(Machine model)데이터 유형Tips자기만의 EDA code를 짜두고 잘 정리해 두기Model에 따라 돌려본 hyperparameter, 변수(중요도가 높은 기준 등의 다양한 조합을 했을 때 뭘 선택했는지), 데이터분할방식, 훈련세트비율, scaling 등 모두 기록해두면서 모델 성능을 관리하기 --> 여러번 수행했을 때 그냥 pass하지 말고 분석하기e.g. 아래 예시 Linear Regression with PytorchLinear Regression독립변수들과 종속변수 간의 관계를 예측할 때, 그 사이의 관계를 선형(1차 함수)으로 가정하고 모델링하는 지도학습 알고리즘Pytor.. 이전 1 2 3 4 5 6 7 8 ··· 11 다음 목록 더보기