1)sklearn學習之train_test_split

代碼 python from __future__ import print_function import numpy as np from sklearn.model_selection import train_test_split X, y = np.arange(10).reshape((5, 2)), range(5) print(X) # [[ 0 1] # [ 2 3] #
相關文章
相關標籤/搜索