sklearn的train_test_split

train_test_split函數用於將矩陣隨機劃分爲訓練子集和測試子集,並返回劃分好的訓練集測試集樣本和訓練集測試集標籤。html 格式:數組 X_train,X_test, y_train, y_test =cross_validation.train_test_split(train_data,train_target,test_size=0.3, random_state=0)dom 參
相關文章
相關標籤/搜索