With refit=True, what does GridSearchCV do after evaluating every candidate?
-
A
Recomputes the metric on the grid mean
-
B
Refits the best estimator on all data
Correct answer
-
C
Repeats the search over a wider grid
-
D
Keeps every fold model for later use
Correct answer
B. Refits the best estimator on all data
14 views
Explanation
refit=True retrains the winning configuration on the full dataset and exposes it as best_estimator_.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ