반응형
Holdout Method (Sampling)
- test, train 데이터를 나눠서 모델을 생성하고 테스트하는 기법
- 일반적으로 train 2/3, test 1/3 를 활용한다
import numpy as np
from sklearn.model_selection import train_test_split
X, y = np.arange(10).reshape((5, 2)), range(5)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42)
overfitting : train 데이터에 모델이 과도하게 맞춰져 있는 것
반응형
'AI > Machine Learning' 카테고리의 다른 글
SGD Issues (0) | 2021.01.27 |
---|---|
Stochastic Gradient Descent (0) | 2021.01.26 |
Gradient Descent (0) | 2021.01.26 |
하이퍼 파라미터란? (0) | 2021.01.26 |
normal equation (0) | 2021.01.25 |