machine-learning classification regression
Definition
Decision Tree
A decision tree is a non-parametric supervised learning model that predicts the value of a target variable by learning simple decision rules inferred from the data features. Formally, it is a directed tree structure consisting of:
- Split Nodes: Represent a test on an attribute (e.g., “is
?” or “is ?”). - Edges: Represent the outcome of the test, leading to child nodes.
- Leaf Nodes: Store the final predicted value or class label.
Representational Expressivity
Any Boolean function
Top Down Induction
Trees are typically constructed recursively using a greedy approach (e.g., ID3, C4.5, CART). The process involves identifying the attribute that achieves the optimal result for a splitting criterion
Construction Algorithm
Given a dataset
Step 1 (Initialization): Assign all
Step 2 (Attribute Evaluation): For each attribute in
Step 3 (Splitting): Identify the attribute that achieves the optimal result for
Step 4 (Recursion): Create child nodes for each partition. For each node, if it is pure, designate as a leaf; otherwise, repeat from step 2 using the subset of data in the child node.