In decision analysis, a decision tree can be used to visually and explicitly represent decisions and decision making.
As the name goes, it uses a tree-like model of decisions.
A decision tree is a flowchart like tree structure, where each internal node denotes a test on an attribute, each branch represents an outcome of the test, and each leaf node (terminal node) holds a class label.
Below are the important sections:
โ๏ธBuilding a decision tree to predict the income of a given population, which is labelled as <= 50๐พ๐๐๐> 50K.
โ๏ธThe attributes (predictors) are age, working class type, marital status, gender, race etc.
โ๏ธData cleaning and Data modeling
โ๏ธBuilding a decision tree with default hyperparameters
โ๏ธConsidering all the hyperparameters that can be tuned
โ๏ธChooseing the optimal hyperparameters using grid search cross-validation.
โ๏ธPruning of decision tree for considering relevant split/nodes.