【发布时间】:2020-01-03 13:21:40
【问题描述】:
无论我走到哪里,我都会看到这段代码。需要帮助理解这一点。
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X,y,testsize = 0.20)
X_train, X_test, y_train, y_test 在这种情况下是什么意思,我应该把 fit() 和 predict() 放进去
【问题讨论】:
标签: python-3.x machine-learning scikit-learn data-science evaluation