Bootstrap

【解决错误】ImportError: cannot import name ‘LinearRegression‘ from ‘sklearn.model_selection‘

从sklearn.linear_model中导入LinearRegression;而不是从sklearn.model_selection中导入

代码如下:

from sklearn.linear_model import LinearRegression

;