Question
2. [25 points] Parameter Sweep over Decision Trees - Dataset: https://www.kaggle.com/uciml/mushroom-classification - Divide it randomly into 65% training and 35% test data - Build a
2. [25 points] Parameter Sweep over Decision Trees - Dataset: https://www.kaggle.com/uciml/mushroom-classification - Divide it randomly into 65% training and 35% test data - Build a Decision Tree classifier with the following hyper-parameter combinations: o Purity Measure: Entropy o Maximum Depth:1, 2, 3, 4, 5, 6, 7 o Purity Threshold: 0.6, 0.7, 0.8, 0.9 o (Keep Size Threshold very low so only these two parameters are at play) - Create a 2-D Table (Depth vs. Purity) above values - In each cell, write the "Training" and "Test" accuracy - Make an observation about the best parameter combination - Draw the decision tree using the tools available - Write down the rules learnt by this decision tree
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