카테고리 없음

[머신러닝] 훈련세트와 테스트세트

개발자국S2 2021. 9. 6. 15:18
from sklearn.model_selection import train_test_split
train_input, test_input, train_target, test_target = train_test_split(X, y, random_state=1)

 

train_input, train_target과 test_input, test_target이 나뉘어서 훈련된다. 이 둘을 나누는 이유는 두 번이나 설명을 들었는데도 기억이 잘 나지않아 좋은 참고 글을 가져와봤다. 

 

https://hyjykelly.tistory.com/44

반응형