精華區beta NTUCH-HW 關於我們 聯絡資訊
columns = "age sex bmi map tc ldl hdl tch ltg glu".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) print (X_train.shape, y_train.shape) print (X_test.shape, y_test.shape)