• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Data Science by
Explain the steps in making a decision tree.

1 Answer

0 votes

Take the entire data set as input

  1. Calculate entropy of the target variable, as well as the predictor attributes
  2. Calculate your information gain of all attributes (we gain information on sorting different objects from each other)
  3. Choose the attribute with the highest information gain as the root node 
  4. Repeat the same procedure on every branch until the decision node of each branch is finalized
  5. For example, let's say you want to build a decision tree to decide whether you should accept or decline a job offer. 

Related questions

+1 vote
asked May 28, 2021 in Data Science by sharadyadav1986
0 votes
asked Jun 13, 2020 by anonymous