I have an issue model fit in Ridge

The problem is somewhere else.

The fit() method complains that there is NaN in one of the training examples.

You probably failed to imput the data correctly.

Hey, probably you are using prices_df(which has NaN values in it) for fitting/transforming the scaler/imputer. Use, inputs_df instead.

1 Like