机器学习之LinearRegression与Logistic Regression逻辑斯蒂回归(三) (5)

训练模型

knn = KNeighborsRegressor() linear = LinearRegression() ridge = Ridge() lasso = Lasso() knn.fit(X_train,y_train) linear.fit(X_train,y_train) ridge.fit(X_train,y_train) lasso.fit(X_train,y_train)

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpsdzy.html