Fitting the whole dataset

Hi,
In both cases, search_cv is fitted on data_train but it’s said that the final model is refitted on the whole training set.
How the model knows about the whole dataset ? I don’t see it feeded anywhere to search_cv …
Thanks you !

What do we mean by the whole dataset, corresponding to the dataset provided during the fit call. Thus data_train.

While making the grid-search, it should be understood that data_train is then split into a further train and validation set internally for the search.

3 Likes