인프런 커뮤니티 질문&답변
답변 1
0
퇴근후딴짓
지식공유자
from sklearn.model_selection import train_test_split
X = [[1, 2], [3, 4], [5, 6], [7, 8]]
X_train, X_test = train_test_split(X)X 데이터만 분리되며, 반환되는 값은 X_train과 X_test 두 개 입니다.
이렇게 분리하고 모델에 학습할 때 타겟을 분리해도 됩니다.
답변 1
0
from sklearn.model_selection import train_test_split
X = [[1, 2], [3, 4], [5, 6], [7, 8]]
X_train, X_test = train_test_split(X)X 데이터만 분리되며, 반환되는 값은 X_train과 X_test 두 개 입니다.
이렇게 분리하고 모델에 학습할 때 타겟을 분리해도 됩니다.