Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
Given a parameter grid defined as param_grid = (ParamGridBuilder().addGrid(rf.maxDepth, [2, 5]).addGrid(rf.numTrees, [5, 10]).build()) and using 3-fold cross-validation to find the optimal hyperparameters, how many models will be trained in total?
param_grid = (ParamGridBuilder().addGrid(rf.maxDepth, [2, 5]).addGrid(rf.numTrees, [5, 10]).build())
A
4 models
B
12 models
C
6 models
D
24 models
E
8 models