Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this question you will adapt the lab notebook for decision trees. Your task is to build a decision tree with just 3 predictor variables,

For this question you will adapt the lab notebook for decision trees. Your task is to build a decision tree with just 3 predictor variables, income, house value and whether college attended or not. The target variable stays the same (leave or stay). When building the tree, control the evolution of the tree with the following statement:

decision_tree = DecisionTreeClassifier(max_depth=6, criterion="entropy",max_leaf_nodes = 12, min_samples_leaf = 1).

What is the prediction of the decision tree for a customer with income = 90,000, house value = 152000 and NOT attended college (i.e., college = 0)?

Step by Step Solution

3.51 Rating (178 Votes )

There are 3 Steps involved in it

Step: 1

ANSWER The predicted value is leave EXPLANATI... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Cost Accounting A Managerial Emphasis

Authors: Charles T. Horngren, Srikant M.Dater, George Foster, Madhav

13th Edition

8120335643, 136126634, 978-0136126638

More Books

Students also viewed these Accounting questions

Question

When is job analysis performed?

Answered: 1 week ago

Question

Consider a M/G/1 system with E[S] Answered: 1 week ago

Answered: 1 week ago