linear_model.LinearRegression().fit(x, y)
时间: 2024-06-06 08:11:06 浏览: 62
sklearn常用的API参数解析:sklearn.linear_model.LinearRegression
This code creates an instance of the LinearRegression class from the sklearn.linear_model module and fits a linear regression model to the data represented by the input variables x and y. The resulting model can be used to make predictions on new data.
阅读全文