Decision Tree Algorithm: Comp328 Tutorial 1 Kai Zhang
Decision Tree Algorithm: Comp328 Tutorial 1 Kai Zhang
Comp328 tutorial 1
Kai Zhang
Outline
Introduction
Example
Principles
– Entropy
– Information gain
Evaluations
Demo
The problem
Given a set of training cases/objects and their
attribute values, try to determine the target attribute
value of new examples.
– Classification
– Prediction
Why decision tree?
Decision trees are powerful and popular tools for
classification and prediction.
Decision trees represent rules, which can be
understood by humans and used in knowledge
system such as database.
key requirements
A classification problem
Generalizing the learned rule to new examples
Definition
Decision tree is a classifier in the form of a tree structure
– Decision node: specifies a test on a single attribute
– Leaf node: indicates the value of the target attribute
– Arc/edge: split of one attribute
– Path: a disjunction of test to make the final decision
Demo
Continuous Attribute?