[python]프리렉_빅분기실기.p288


[python]프리렉_빅분기실기.p288

###20230105 import sklearn.model_selection test = dir(sklearn.model_selection ) for name in test: if ',' not in name: print(name) from sklearn.model_selection import train_test_split x_train, x_test , y_train, y_test = train_test_split(X,Y,test_size = 0.3, random_state = 10) print("xtrain") print(x_train.head(3)) print("xtest") print(x_test.head(3)) print("ytrain") print(y_train.head(3)) print("ytest") print(y_test.head(3)) ##종속변수가 연속형이면 예측모델, 범주형이면 분류모델로 방향을 잡는다 ##예측모델이나 분류모델을 수행하는 공통과정 #1.공부시킬...



원문링크 : [python]프리렉_빅분기실기.p288