Question: For this last question, we will explore the dependability of our estimates. (a) [6 points] Make a plot using the following procedure: i. Using random
For this last question, we will explore the dependability of our estimates. (a) [6 points] Make a plot using the following procedure: i. Using random state values from 0, 1, , 99 calculate the 10-fold cross-validation accuracy of different tree.DecisionTreeClassifiers with max depth settings from 1, 2, , 10. ii. Then record the best max depth settings for each random state. Be sure to check whether multiple settings achieve the best accuracy. iii. Plot the counts for the best max depth settings as a bar chart with the max depth settings on the x-axis and the best parameter counts on the y-axis (number of times that parameter was selected as the best max depth setting). This will be the sampling distribution of our best parameter estimate. Note: this calculation might take some time. For debugging, try a smaller range of random states. (b) [2 points] What are the top two most frequent parameter settings?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
