📌  相关文章
📜  训练测试拆分 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:57.358000             🧑  作者: Mango

代码示例6
from sklearn.linear_model import LinearRegression

rl = LinearRegression().fit(X, y)
rl.fit(X, y) #We can fit model to dataset in this way too