What is the prediction of the decision tree…

icon
Related questions
Question

What is the prediction of the decision tree…

 
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).
Use 50% of the original data as the test set and
random_state = 0.
What is the prediction of the decision tree for a
customer with income = 700,000, house value = 140000
and attended college (i.e., college = 1)?
Leave
Neither stay nor leave. Tree cannot predict for such a
customer
Stay
Stay till a bad customer service event happens.
Transcribed Image Text: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). Use 50% of the original data as the test set and random_state = 0. What is the prediction of the decision tree for a customer with income = 700,000, house value = 140000 and attended college (i.e., college = 1)? Leave Neither stay nor leave. Tree cannot predict for such a customer Stay Stay till a bad customer service event happens.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Decision Making Process
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, ai-and-machine-learning and related others by exploring similar questions and additional content below.