1 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 6) 07/20/06
Data Mining
Practical Machine Learning Tools and Techniques
Slides for Chapter 6 of Data Mining by I. H. Witten and E. Frank
2 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 6) 07/20/06
Implementation:
Real machine learning schemes
- Decision trees
z From ID3 to C4.5 (pruning, numeric attributes, ...)
- Classification rules
z From PRISM to RIPPER and PART (pruning, numeric data, ...)
- Extending linear models
z Support vector machines and neural networks
- Instance-based learning
z Pruning examples, generalized exemplars, distance functions
- Numeric prediction
z Regression/model trees, locally weighted regression
- Clustering: hierarchical, incremental, probabilistic
z Hierarchical, incremental, probabilistic
- Bayesian networks
z Learning and prediction, fast data structures for learning 3 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 6) 07/20/06
Industrial-strength algorithms
✁ For an algorithm to be useful in a widerange of real-world applications it must:
z Permit numeric attributes z Allow missing values z Be robust in the presence of noise z Be able to approximate arbitrary concept
descriptions (at least in principle)
✁ Basic schemes need to be extended to fulfillthese requirements
4 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 6) 07/20/06
Decision trees
✂ Extending ID3: ✄ to permit numeric attributes:straightforward
✄ to deal sensibly with missing values:trickier
✄ stability for noisy data:requires pruning mechanism
✂ End result: C4.5 (Quinlan) ✄ Best-known and (probably) most widely-usedlearning algorithm
✄ Commercial successor: C5.05 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 6) 07/20/06
Numeric attributes
✁ Standard method: binary splitsz E.g. temp < 45
✁ Unlike nominal attributes,every attribute has many possible split points
✁ Solution is straightforward extension:z Evaluate info gain (or other measure)
for every possible split point of attribute
z Choose “best” split point z Info gain for best split point is info gain for attribute
✁ Computationally more demanding6 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 6) 07/20/06
Weather data (again!)
If outlook = sunny and humidity = high then play = no If outlook = rainy and windy = true then play = no If outlook = overcast then play = yes If humidity = normal then play = yes If none of the above then play = yes … … … … … Yes False Normal Mild Rainy Yes False High Hot Overcast No True High Hot Sunny No False High Hot Sunny Play Windy Humidity Temperature Outlook … … … … … Yes False Normal Mild Rainy Yes False High Hot Overcast No True High Hot Sunny No False High Hot Sunny Play Windy Humidity Temperature Outlook … … … … … Yes False High Mild Rainy Yes False High Hot Overcast No True High Hot Sunny No False High Hot Sunny Play Windy Humidity Temperature Outlook … … … … … … … … … … No True Normal Cool Rainy … … … … … … … … … … … … … … … … … … … … … … … … … Yes False Normal Cool Rainy