270 likes | 397 Views
Decision Trees with Minimal Costs (ICML 2004, Banff, Canada). Charles X. Ling, Univ of Western Ontario, Canada Qiang Yang, HK UST, Hong Kong Jianning Wang, Univ of Western Ontario , Canada Shichao Zhang, UTS, Australia Contact: cling@csd.uwo.ca. Outline. Introduction
E N D
Decision Trees with Minimal Costs(ICML 2004, Banff, Canada) Charles X. Ling, Univ of Western Ontario, Canada Qiang Yang, HK UST, Hong Kong Jianning Wang, Univ of Western Ontario, Canada Shichao Zhang, UTS, Australia Contact: cling@csd.uwo.ca
Outline • Introduction • Building Trees with Minimal Total Costs • Testing Strategies • Experiments and Results • Conclusions
Costs in Machine Learning • Most inductive learning algorithms: minimizing classification errors • Different types of misclassification have different costs, e.g. FP and FN • In this talk: • Test costs should also be considered • Cost sensitive learning considers a variety of costs; see survey by Peter Turney (2000)
Applications • Medical Practice • Doctors may ask a patient to go through a number of tests (e.g., Blood tests, X-rays) • Which of these new tests will bring about higher value? • Biological Experimental Design • When testing a new drug, new tests are costly • which experiments to perform?
Previous Work • Many previous works consider the two types of cost separately – an obvious oversight • (Turney 1995): ICET, uses genetic algorithm to build trees to minimize the total cost • (Zubek and Dieterrich 2002): a Markov Decision Process (MDP), searches in a state space for optimal policies • (Greiner et al. 2002): PAC learning
An Example of Our Problem Training: with ?, cannot obtain values Goal 1: build a tree that minimizes the total cost Test: with many ?, may obtain values at a cost Goal 2: obtain test values at a cost to minimize the total cost
Outline • Introduction • Building Trees with Minimal Total Costs • Testing Strategies • Experiments and Results • Conclusions
Building Trees with Minimal Total Costs • Assumption: binary classes, costs: FP and FN • Goal: minimize total cost • Total cost = misclassification cost + test cost • Previous Work • Information Gain as a attribute selection criterion • In this work, need a new attribute selection criterion
Attribute Selection Criterion: C4.5 Minimal total cost (C4.5: minimal entropy) • If growing a tree has a smaller total costthen choose an attribute with minimal total costelse stop and form a leaf
Label leaf according to minimal total cost If (P×FN N×FP)then class = positiveelse class = negative
Difference on ? values • First, how to handle ? values in training data • Previous work • built ? branch; • problematic • This work • deal with unknown values in the training set: • no branch for ? will be built, • examples are “gathered” inside the internal nodes
A1 A1 P All test costs are 300 A6 A6 P N P N P P P P P P All test costs are 20 P N N P N N All test costs are 0 Desirable Properties 1. Effect of difference between misclassification costs and the test costs
A1 A2 A3 A4 A5 A6 # 1 20 20 20 20 20 20 # 2 200 20 100 100 200 200 # 3 200 100 100 100 20 200 A1 A2 A5 A6 A6 A1 N P P P P P P A1 P P N N P N N P N P N P P P N P N P P 2. Prefer attribute with smaller test costs
A6 A6 A1 P P A1 N P P A2 N A6 A6 P P P P P N N P N N N N P P N P N Cost of A1=20 Cost of A1=50 Cost of A1=80 3. If test cost increases, attribute tends to be “pushed” down and “falls out” of the tree
Outline • Introduction • Building Trees with Minimal Total Costs • Testing Strategies • Experiments and Results • Conclusions
Missing values in test cases A New patient arrives:
OST: Intuition • Explain the intuition of OST here
A1 A6 A6 P P P P P N N P N N A1 P N P N P P Four Testing Strategies • First: Optimal Sequential Test (OST)(Simple batch test: do all tests) • Second: No test will be performed, predict with internal node • Third: No test will be performed, predict with weighted sum of subtrees • Fourth: A new tree is built dynamically for each test case using only the known attributes
Outline • Introduction • Building Trees with Minimal Total Costs • Testing Strategies • Experiments and Results • Conclusions
Experiment - settings • Five dataset, binary-class • 60/40 for training/testing, repeat 5 times • Unknown values for training/test examples are selected randomly by a specific probability • Also compare to C4.5 tree, using OST for testing
No test, internal No test, lazy tree C4.5 tree, OST Results with different % of unknown • OST is best; M4 and C4.5 next; M3 is worst • OST not increase with more ?; others do overall No test, distributed
No test, internal No test, lazy tree C4.5 tree, OST Results with different test costs • With large test costs, OST = M2 = M3 = M4 • C4.5 is much worse (tree building is cost-insensitive) No test, distributed
No test, internal No test, distributed No test, lazy tree C4.5 tree, OST Results with unbalanced class costs • With large test costs, OST = M2 = M4 • C4.5 is much worse (tree building is cost-insensitive) • M3 is worse than M2… (M3 is used in C4.5)
Comparing OST/C4.5 cross 6 datasets • OST always outperforms C4.5
Outline • Introduction • Building Trees with Minimal Total Costs • Testing Strategies • Experiments and Results • Conclusions
Conclusions • New tree building algorithm for minimal costs • Desirable properties • Computationally efficient (similar to C4.5) • Test strategies (OST and batch) are very effective • Can solve many real-world diagnosis problems
Future Work • More intelligent “Batch Test” methods • Consider cost of additional batch test • Optimal sequential batch testbatch 1 = (test1, test 2)batch 2 = (test 3, test 4, test 5), … • Other learning algorithms with minimal total cost • A wrapper that works for any “black box”