In the final “Note”, you say that the cv_inner = KFold(n_splits=4) and cv_outer = KFold(n_splits=5).
I guess that the n_splits for cv_outer is set by:
cv_results = cross_validate(
model_grid_search, data, target, cv=5, n_jobs=2, return_estimator=True
)
Where is cv_inner set up? Is it given when defining the model_grid_search? If so, why is it said to be 4?
In general, how does one get these values programmatically?