报错信息如下:
ValueError: Invalid parameter ‘Poly_degree’ for estimator Pipeline(steps=[(‘Poly’, PolynomialFeatures()),
(‘line’, LinearRegression(fit_intercept=False))]). Valid parameters are: [‘memory’, ‘steps’, ‘verbose’].
解决方法:将’Poly_degree’写成’Poly__degree’,为双下划线