Login
Remember
Register
Ask a Question
Explain the steps in making a decision tree.
+1
vote
asked
Oct 1, 2021
in
Data Science
by
Robin
Explain the steps in making a decision tree.
decision-tree
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 1, 2021
by
Robin
Take the entire data set as input
Calculate entropy of the target variable, as well as the predictor attributes
Calculate your information gain of all attributes (we gain information on sorting different objects from each other)
Choose the attribute with the highest information gain as the root node
Repeat the same procedure on every branch until the decision node of each branch is finalized
For example, let's say you want to build a decision tree to decide whether you should accept or decline a job offer.
...