TypeError: LinearRegression.__init__() got an unexpected keyword argument ‘normalize‘
normalize
在新版本的scikit-learn中已经被移除了。你可以手动normalize data。
Example:
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LinearRegression
from sklearn.pipeline import make_pipeline
# Create a pipeline that first standardizes the data then applies linear regression
pipeline = make_pipeline(StandardScaler(), LinearRegression())