TypeError: Ridge.__init__() got an unexpected keyword argument 'normalize'

In “C1_W3_Lab08_Overfitting_Soln”

I have downloaded the workspace in the latest version. All the code in this lab runs normally except the one below. Can anyone help me? Do I need to revise the related code? I don’t know how to fix it.

When I run code locally

In the scikit implementation of the Ridge regression

class sklearn.linear_model.Ridge(alpha=1.0, ***, fit_intercept=True, copy_X=True, max_iter=None, tol=0.0001, solver=‘auto’, positive=False, random_state=None )[source]

there is no normalize parameter, perhaps this is the issue!


I have fixed it, thank you!

1 Like