Web-Mining Agents: Classification with Ensemble Methods R. Möller Institute of Information Systems University of Luebeck.

Slides:



Advertisements
Similar presentations
Lectures 17,18 – Boosting and Additive Trees Rice ECE697 Farinaz Koushanfar Fall 2006.
Advertisements

Ensemble Methods An ensemble method constructs a set of base classifiers from the training data Ensemble or Classifier Combination Predict class label.
CMPUT 466/551 Principal Source: CMU
Longin Jan Latecki Temple University
Paper presentation for CSI5388 PENGCHENG XI Mar. 23, 2005
An Introduction to Ensemble Methods Boosting, Bagging, Random Forests and More Yisong Yue.
Sparse vs. Ensemble Approaches to Supervised Learning
Ensemble Learning what is an ensemble? why use an ensemble?
A Brief Introduction to Adaboost
Ensemble Learning: An Introduction
Adaboost and its application
Introduction to Boosting Aristotelis Tsirigos SCLT seminar - NYU Computer Science.
Machine Learning: Ensemble Methods
Sparse vs. Ensemble Approaches to Supervised Learning
Boosting Main idea: train classifiers (e.g. decision trees) in a sequence. a new classifier should focus on those cases which were incorrectly classified.
Ensemble Learning (2), Tree and Forest
Machine Learning & Data Mining CS/CNS/EE 155
For Better Accuracy Eick: Ensemble Learning
Machine Learning CS 165B Spring 2012
Zhangxi Lin ISQS Texas Tech University Note: Most slides are from Decision Tree Modeling by SAS Lecture Notes 6 Ensembles of Trees.
Machine Learning1 Machine Learning: Summary Greg Grudic CSCI-4830.
CS 391L: Machine Learning: Ensembles
LOGO Ensemble Learning Lecturer: Dr. Bo Yuan
Machine Learning & Data Mining CS/CNS/EE 155 Lecture 9: Decision Trees, Bagging & Random Forests 1.
Ensemble Classification Methods Rayid Ghani IR Seminar – 9/26/00.
Benk Erika Kelemen Zsolt
Boosting of classifiers Ata Kaban. Motivation & beginnings Suppose we have a learning algorithm that is guaranteed with high probability to be slightly.
CS Fall 2015 (© Jude Shavlik), Lecture 7, Week 3
BOOSTING David Kauchak CS451 – Fall Admin Final project.
Combining multiple learners Usman Roshan. Bagging Randomly sample training data Determine classifier C i on sampled data Goto step 1 and repeat m times.
Ensemble Methods: Bagging and Boosting
Ensembles. Ensemble Methods l Construct a set of classifiers from training data l Predict class label of previously unseen records by aggregating predictions.
Ensemble Learning Spring 2009 Ben-Gurion University of the Negev.
CLASSIFICATION: Ensemble Methods
Tony Jebara, Columbia University Advanced Machine Learning & Perception Instructor: Tony Jebara.
Classification Derek Hoiem CS 598, Spring 2009 Jan 27, 2009.
Classification (slides adapted from Rob Schapire) Eran Segal Weizmann Institute.
Ensemble Methods in Machine Learning
Bias-Variance in Machine Learning. Bias-Variance: Outline Underfitting/overfitting: –Why are complex hypotheses bad? Simple example of bias/variance Error.
ECE 5984: Introduction to Machine Learning Dhruv Batra Virginia Tech Topics: –Ensemble Methods: Bagging, Boosting Readings: Murphy 16.4; Hastie 16.
Random Forests Ujjwol Subedi. Introduction What is Random Tree? ◦ Is a tree constructed randomly from a set of possible trees having K random features.
Classification Ensemble Methods 1
Decision Trees IDHairHeightWeightLotionResult SarahBlondeAverageLightNoSunburn DanaBlondeTallAverageYesnone AlexBrownTallAverageYesNone AnnieBlondeShortAverageNoSunburn.
Competition II: Springleaf Sha Li (Team leader) Xiaoyan Chong, Minglu Ma, Yue Wang CAMCOS Fall 2015 San Jose State University.
Combining multiple learners Usman Roshan. Decision tree From Alpaydin, 2010.
Ensemble Methods for Machine Learning. COMBINING CLASSIFIERS: ENSEMBLE APPROACHES.
Tree and Forest Classification and Regression Tree Bagging of trees Boosting trees Random Forest.
Overfitting, Bias/Variance tradeoff. 2 Content of the presentation Bias and variance definitions Parameters that influence bias and variance Bias and.
AdaBoost Algorithm and its Application on Object Detection Fayin Li.
1 Machine Learning Lecture 8: Ensemble Methods Moshe Koppel Slides adapted from Raymond J. Mooney and others.
Ensemble Classifiers.
Combining Models Foundations of Algorithms and Machine Learning (CS60020), IIT KGP, 2017: Indrajit Bhattacharya.
Einführung in Web- und Data-Science Ensemble Learning
Machine Learning: Ensemble Methods
Reading: R. Schapire, A brief introduction to boosting
Boosting and Additive Trees (2)
Trees, bagging, boosting, and stacking
COMP61011 : Machine Learning Ensemble Models
Ensemble Learning Introduction to Machine Learning and Data Mining, Carla Brodley.
ECE 5424: Introduction to Machine Learning
Data Mining Practical Machine Learning Tools and Techniques
Introduction to Data Mining, 2nd Edition
Lecture 18: Bagging and Boosting
Ensemble learning.
Lecture 06: Bagging and Boosting
Model Combination.
Ensemble learning Reminder - Bagging of Trees Random Forest
Model generalization Brief summary of methods
CS639: Data Management for Data Science
Presentation transcript:

Web-Mining Agents: Classification with Ensemble Methods R. Möller Institute of Information Systems University of Luebeck

An Introduction to Ensemble Methods Bagging, Boosting, Random Forests, and More by Yisong Yue Presentation is based on parts of:

Supervised Learning Goal: learn predictor h(x) – High accuracy (low error) – Using training data {(x 1,y 1 ),…,(x n,y n )}

PersonAgeMale?Height > 55” Alice1401 Bob1011 Carol1301 Dave810 Erin1100 Frank911 Gena800 Male? Age>9? Age>10? Yes No

Different Classifiers Performance – None of the classifiers is perfect – Complementary Examples which are not correctly classified by one classifier may be correctly classified by the other classifiers Potential Improvements? – Utilize the complementary property CS 4700, Foundations of Artificial Intelligence, Carla P. Gomes

Ensembles of Classifiers Idea – Combine the classifiers to improve the performance Ensembles of Classifiers – Combine the classification results from different classifiers to produce the final output Unweighted voting Weighted voting CS 4700, Foundations of Artificial Intelligence, Carla P. Gomes

Example: Weather Forecast Reality Combine X X X X XX X XX X X X X CS 4700, Foundations of Artificial Intelligence, Carla P. Gomes

Outline Bias/Variance Tradeoff Ensemble methods that minimize variance – Bagging – Random Forests Ensemble methods that minimize bias – Functional Gradient Descent – Boosting – Ensemble Selection

Generalization Error “True” distribution: P(x,y) – Unknown to us Train: h(x) = y – Using training data S = {(x 1,y 1 ),…,(x n,y n )} – Sampled from P(x,y) Generalization Error: – L (h) = E (x,y)~P(x,y) [ f(h(x),y) ] – E.g., f(a,b) = (a-b) 2

PersonAgeMale?Height > 55” Alice1401 Bob1011 Carol1301 Dave810 Erin1100 Frank911 Gena800 PersonAgeMale?Height > 55” James1111 Jessica1401 Alice1401 Amy1201 Bob1011 Xavier910 Cathy901 Carol1301 Eugene1310 Rafael1211 Dave810 Peter910 Henry1310 Erin1100 Rose700 Iain811 Paulo1210 Margare t 1001 Frank911 Jill1300 Leon1010 Sarah1200 Gena800 Patrick511 … L (h) = E (x,y)~P(x,y) [ f(h(x),y) ] Generalization Error: h(x) y

Bias/Variance Tradeoff Treat h(x|S) has a random function – Depends on training data S L = E S [ E (x,y)~P(x,y) [ f(h(x|S),y) ] ] – Expected generalization error – Over the randomness of S

Bias/Variance Tradeoff Squared loss: f(a,b) = (a-b) 2 Consider one data point (x,y) Notation: – Z = h(x|S) – y – ž = E S [Z] – Z-ž = h(x|S) – E S [h(x|S)] E S [(Z-ž) 2 ] = E S [Z 2 – 2Zž + ž 2 ] = E S [Z 2 ] – 2E S [Z]ž + ž 2 = E S [Z 2 ] – ž 2 E S [f(h(x|S),y)] = E S [Z 2 ] = E S [(Z-ž) 2 ] + ž 2 BiasVariance Expected Error Bias/Variance for all (x,y) is expectation over P(x,y). Can also incorporate measurement noise. (Similar flavor of analysis for other loss functions.)

Example x y

h(x|S)

E S [(h(x|S) - y) 2 ] = E S [(Z-ž) 2 ] + ž 2 Variance Z = h(x|S) – y ž = E S [Z] Bias Variance Bias Variance Bias Variance Bias Expected Error

Outline Bias/Variance Tradeoff Ensemble methods that minimize variance – Bagging – Random Forests Ensemble methods that minimize bias – Functional Gradient Descent – Boosting – Ensemble Selection

Bagging Goal: reduce variance Ideal setting: many training sets S’ – Train model using each S’ – Average predictions E S [(h(x|S) - y) 2 ] = E S [(Z-ž) 2 ] + ž 2 VarianceBias Expected Error Z = h(x|S) – y ž = E S [Z] “Bagging Predictors” [Leo Breiman, 1994] Variance reduces linearly Bias unchanged sampled independently S’S’ P(x,y)

Bagging Goal: reduce variance In practice: resample S’ with replacement – Train model using each S’ – Average predictions E S [(h(x|S) - y) 2 ] = E S [(Z-ž) 2 ] + ž 2 VarianceBias Expected Error Z = h(x|S) – y ž = E S [Z] from S “Bagging Predictors” [Leo Breiman, 1994] Variance reduces sub-linearly (Because S’ are correlated) Bias often increases slightly S’S’S Bagging = Bootstrap Aggregation

“An Empirical Comparison of Voting Classification Algorithms: Bagging, Boosting, and Variants” Eric Bauer & Ron Kohavi, Machine Learning 36, 105–139 (1999) Variance Bias DTBagged DT Better

Random Forests Goal: reduce variance – Bagging can only do so much – Resampling training data asymptotes Random Forests: sample data & features! – Sample S’ – Train DT At each node, sample features (sqrt) – Average predictions “Random Forests – Random Features” [Leo Breiman, 1997] Further de-correlates trees

Better Average performance over many datasets Random Forests perform the best “An Empirical Evaluation of Supervised Learning in High Dimensions” Caruana, Karampatziakis & Yessenalina, ICML 2008

Structured Random Forests DTs normally train on unary labels y=0/1 What about structured labels? – Must define information gain of structured labels Edge detection: – E.g., structured label is a 16x16 image patch – Map structured labels to another space where entropy is well defined “Structured Random Forests for Fast Edge Detection” Dollár & Zitnick, ICCV 2013

Outline Bias/Variance Tradeoff Ensemble methods that minimize variance – Bagging – Random Forests Ensemble methods that minimize bias – Functional Gradient Descent – Boosting – Ensemble Selection

Functional Gradient Descent h(x) = h 1 (x) S’ = {(x,y)} h 1 (x) S’ = {(x,y-h 1 (x))} h 2 (x) S’ = {(x,y-h 1 (x) - … - h n-1 (x))} h n (x) … + h 2 (x)+ … + h n (x)

Coordinate Gradient Descent Learn w so that h(x) = w T x Coordinate descent – Init w = 0 – Choose dimension with highest gain Set component of w – Repeat

Coordinate Gradient Descent Learn w so that h(x) = w T x Coordinate descent – Init w = 0 – Choose dimension with highest gain Set component of w – Repeat

Coordinate Gradient Descent Learn w so that h(x) = w T x Coordinate descent – Init w = 0 – Choose dimension with highest gain Set component of w – Repeat

Coordinate Gradient Descent Learn w so that h(x) = w T x Coordinate descent – Init w = 0 – Choose dimension with highest gain Set component of w – Repeat

Coordinate Gradient Descent Learn w so that h(x) = w T x Coordinate descent – Init w = 0 – Choose dimension with highest gain Set component of w – Repeat

Coordinate Gradient Descent Learn w so that h(x) = w T x Coordinate descent – Init w = 0 – Choose dimension with highest gain Set component of w – Repeat

Functional Gradient Descent “Function Space” (All possible DTs) Coordinate descent in function space Restrict weights to be 0,1,2,… h(x) = h 1 (x)+ h 2 (x)+ … + h n (x)

Boosting (AdaBoost) h(x) = a 1 h 1 (x) S’ = {(x,y,u 1 )} h 1 (x) S’ = {(x,y,u 2 )} h 2 (x) S’ = {(x,y,u 3 ))} h n (x) … + a 2 h 2 (x)+ … + a 3 h n (x) u – weighting on data points a – weight of linear combination Stop when validation performance plateaus (will discuss later)

Theorem: training error drops exponentially fast Initial Distribution of Data Train model Error of model Coefficient of model Update Distribution Final average

DT AdaBoost Better Bagging Variance Bias Boosting often uses weak models E.g, “shallow” decision trees Weak models have lower variance “An Empirical Comparison of Voting Classification Algorithms: Bagging, Boosting, and Variants” Eric Bauer & Ron Kohavi, Machine Learning 36, 105–139 (1999)

Ensemble Selection “Ensemble Selection from Libraries of Models” Caruana, Niculescu-Mizil, Crew & Ksikes, ICML 2004 Training S’ Validation V’ H = {2000 models trained using S’} h(x) = h 1 (x) + h 2 (x) + … + h n (x) Maintain ensemble model as combination of H: Add model from H that maximizes performance on V’ + h n+1 (x) Repeat S Denote as h n+1 Models are trained on S’ Ensemble built to optimize V’

MethodMinimize Bias?Minimize Variance?Other Comments BaggingComplex model class. (Deep DTs) Bootstrap aggregation (resampling training data) Does not work for simple models. Random Forests Complex model class. (Deep DTs) Bootstrap aggregation + bootstrapping features Only for decision trees. Gradient Boosting (AdaBoost) Optimize training performance. Simple model class. (Shallow DTs) Determines which model to add at run- time. Ensemble Selection Optimize validation performance Pre-specified dictionary of models learned on training set. State-of-the-art prediction performance – Won Netflix Challenge – Won numerous KDD Cups – Industry standard …and many other ensemble methods as well.

References & Further Reading “An Empirical Comparison of Voting Classification Algorithms: Bagging, Boosting, and Variants” Bauer & Kohavi, Machine Learning, 36, 105–139 (1999) “Bagging Predictors” Leo Breiman, Tech Report #421, UC Berkeley, 1994, “An Empirical Comparison of Supervised Learning Algorithms” Caruana & Niculescu-Mizil, ICML 2006 “An Empirical Evaluation of Supervised Learning in High Dimensions” Caruana, Karampatziakis & Yessenalina, ICML 2008 “Ensemble Methods in Machine Learning” Thomas Dietterich, Multiple Classifier Systems, 2000 “Ensemble Selection from Libraries of Models” Caruana, Niculescu-Mizil, Crew & Ksikes, ICML 2004 “Getting the Most Out of Ensemble Selection” Caruana, Munson, & Niculescu-Mizil, ICDM 2006 “Explaining AdaBoost” Rob Schapire, “Greedy Function Approximation: A Gradient Boosting Machine”, Jerome Friedman, 2001, “Random Forests – Random Features” Leo Breiman, Tech Report #567, UC Berkeley, 1999, “Structured Random Forests for Fast Edge Detection” Dollár & Zitnick, ICCV 2013 “ABC-Boost: Adaptive Base Class Boost for Multi-class Classification” Ping Li, ICML 2009 “Additive Groves of Regression Trees” Sorokina, Caruana & Riedewald, ECML 2007, “Winning the KDD Cup Orange Challenge with Ensemble Selection”, Niculescu-Mizil et al., KDD 2009 “Lessons from the Netflix Prize Challenge” Bell & Koren, SIGKDD Exporations 9(2), 75—79, 2007