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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started