Question: When building a decision tree model, one used the GridSearchCV ( ) method to search for optimal parameters, i . e . , 'max _

When building a decision tree model, one used the GridSearchCV() method to search for optimal parameters, i.e., 'max_depth' and 'min_samples_split'. He set the first set of parameters as the follows:
param_grid ={
'max_depth': [5,10,15,20,25],
'min_samples_split': [10,20,30,40,50,60,70,80,90,100]
}
The first attempt of GridSearchCV() produces the following best parameters: Initial parameters: {'max_depth': 5, 'min_samples_split': 40}
How should the person set the second param_grid? Why?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!