훈련 , 검증, 테스트 데이터 셋 나누기 (hold-out validation)

2021. 5. 7. 02:40데이터 사이언스/데이터 분할

ㅇ 훈련, 테스트 데이터 셋 나누기 

예시)

X_train, X_test, y_train, y_test = train_test_split(x, y, test_size =   0.3, random_state = 10

 

ㅇ 검증 데이터 셋 나누기 

예시)

X_train1, X_val, y_train1, y_val = train_test_split(X_train,y_train, test_size=0.2, random_state=777)

'데이터 사이언스 > 데이터 분할' 카테고리의 다른 글

10-fold cross validation  (0) 2021.05.08