What does cross_val_score report when given a model, X, y and cv=5?
Correct answer
D. Five scores, one per fold, from rotating validation splits
17 views
D. Five scores, one per fold, from rotating validation splits
17 views
cross_val_score splits the data into five folds, trains on four and scores the fifth, repeating so every fold serves once as validation, then returns the array of five scores. Averaging them gives a more stable estimate than one train-test split, and the spread shows how sensitive the model is to the partition. The related cross_validate returns multiple metrics and timings, and it does not tune hyperparameters; GridSearchCV does that.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is D? Ask here and get an explanation.