Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 2. (10 pts) A decision tree model has been trained on a dataset with 400 observations and 4 features. The print_tree() method of the
Problem 2. (10 pts) A decision tree model has been trained on a dataset with 400 observations and 4 features. The print_tree() method of the tree is called, generating the following output. * Size: 400 [134, 133, 133], Gini: 0.67, Axis:3, Cut: 4.3 * Size: 127 [90, 36, 1], Gini: 0.42, Axis:0, Cut: 6.64 * Size: 94 [89, 4, 1], Gini: 0.1, Axis:1, Cut: 5.03 * Size: 91 [89, 1, 1], Gini: 0.04, Predicted Class: 0 * Size: 3 [O, 3, 0], Gini: 0.0, Predicted Class: 1 * Size: 33 [1, 32, 0], Gini: 0.06, Axis:2, Cut: 3.8 * Size: 3 [1, 2, 0], Gini: 0.44, Predicted Class: 1 * Size: 30 [0, 30, 0], Gini: 0.0, Predicted Class: 1 Size: 273 [44, 97, 132], Gini: 0.61, Axis:2, Cut: 2.68 * Size: 61 [0, 2, 59], Gini: 0.06, Axis:1, Cut: 1.74 * Size: 3 [0, 2, 1], Gini: 0.44, Predicted Class: 1 * Size: 58 [0, 0, 58], Gini: 0.0, Predicted Class: 2 * Size: 212 [44, 95, 73], Gini: 0.64, Axis:2, Cut: 6.39 * Size: 180 [44, 94, 42], Gini: 0.61, Predicted Class: 1 * Size: 32 [0, 1, 31), Gini: 0.06, Predicted Class: 2 Use the information in this print-out to classify the four observations provided below. [4, 3, 2, 7] [8, 4, 7, 3] [3, 2, 7, 2] [5, 8, 4, 7] Problem 2. (10 pts) A decision tree model has been trained on a dataset with 400 observations and 4 features. The print_tree() method of the tree is called, generating the following output. * Size: 400 [134, 133, 133], Gini: 0.67, Axis:3, Cut: 4.3 * Size: 127 [90, 36, 1], Gini: 0.42, Axis:0, Cut: 6.64 * Size: 94 [89, 4, 1], Gini: 0.1, Axis:1, Cut: 5.03 * Size: 91 [89, 1, 1], Gini: 0.04, Predicted Class: 0 * Size: 3 [O, 3, 0], Gini: 0.0, Predicted Class: 1 * Size: 33 [1, 32, 0], Gini: 0.06, Axis:2, Cut: 3.8 * Size: 3 [1, 2, 0], Gini: 0.44, Predicted Class: 1 * Size: 30 [0, 30, 0], Gini: 0.0, Predicted Class: 1 Size: 273 [44, 97, 132], Gini: 0.61, Axis:2, Cut: 2.68 * Size: 61 [0, 2, 59], Gini: 0.06, Axis:1, Cut: 1.74 * Size: 3 [0, 2, 1], Gini: 0.44, Predicted Class: 1 * Size: 58 [0, 0, 58], Gini: 0.0, Predicted Class: 2 * Size: 212 [44, 95, 73], Gini: 0.64, Axis:2, Cut: 6.39 * Size: 180 [44, 94, 42], Gini: 0.61, Predicted Class: 1 * Size: 32 [0, 1, 31), Gini: 0.06, Predicted Class: 2 Use the information in this print-out to classify the four observations provided below. [4, 3, 2, 7] [8, 4, 7, 3] [3, 2, 7, 2] [5, 8, 4, 7]
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