Cross Validation Solution Steps

Screen Link:

Can someone explain the code for the iteration, train and test, and fit and predictions steps in the solution? This doesn’t make sense to me. In the cross validation section we used the KNeighborsRegressor and cross_val_score.

1 Like