모델검증 train_test_split
from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, Y, test_size = 0.2, random_state = 5) print('TrainSet', X_train.shape) print('TrainSet', X_test.shape) print('testSet', y_train.shape) print('testSet', y_test.shape) plt.figure(figsize = (12,4)) plt.subplot(121) plt.scatter(X_train.iloc[:,0], X_train.iloc[:,3], alpha = 0.8) plt.title('Trai..