linear regression from sklearn.linear_model import LinearRegression # 导入线性回归模型 model = LinearRegression() # 定义模型 model.fit(X_train, y_train) # 训练模型 print("输出参数w:",model.coef_) # 输出模型参数w print("输出参数b:",model.intercept_) # 输出参数b polynomial regression np