Introduction to Machine Learning and Data Mining. Prof. Dr. Igor Trajkovski trajkovski@nyus.edu.mk



Similar documents
Model Combination. 24 Novembre 2009

CS570 Data Mining Classification: Ensemble Methods

Data Mining Practical Machine Learning Tools and Techniques

Data Mining. Nonlinear Classification

Chapter 11 Boosting. Xiaogang Su Department of Statistics University of Central Florida - 1 -

CI6227: Data Mining. Lesson 11b: Ensemble Learning. Data Analytics Department, Institute for Infocomm Research, A*STAR, Singapore.

Chapter 6. The stacking ensemble approach

Knowledge Discovery and Data Mining

Boosting.

REVIEW OF ENSEMBLE CLASSIFICATION

On the effect of data set size on bias and variance in classification learning

L25: Ensemble learning

Active Learning with Boosting for Spam Detection

DECISION TREE INDUCTION FOR FINANCIAL FRAUD DETECTION USING ENSEMBLE LEARNING TECHNIQUES

Ensemble Methods. Knowledge Discovery and Data Mining 2 (VU) ( ) Roman Kern. KTI, TU Graz

Decompose Error Rate into components, some of which can be measured on unlabeled data

A Study Of Bagging And Boosting Approaches To Develop Meta-Classifier

Ensemble Data Mining Methods

Class #6: Non-linear classification. ML4Bio 2012 February 17 th, 2012 Quaid Morris

Knowledge Discovery and Data Mining

Data Mining Methods: Applications for Institutional Research

Knowledge Discovery and Data Mining

BOOSTING - A METHOD FOR IMPROVING THE ACCURACY OF PREDICTIVE MODEL

How Boosting the Margin Can Also Boost Classifier Complexity

A Learning Algorithm For Neural Network Ensembles

Knowledge Discovery and Data Mining. Bootstrap review. Bagging Important Concepts. Notes. Lecture 19 - Bagging. Tom Kelsey. Notes

Getting Even More Out of Ensemble Selection

Decision Trees from large Databases: SLIQ

Training Methods for Adaptive Boosting of Neural Networks for Character Recognition

Data Mining - Evaluation of Classifiers

How To Solve The Class Imbalance Problem In Data Mining

Comparison of Data Mining Techniques used for Financial Data Analysis

Ensembles and PMML in KNIME

Predicting borrowers chance of defaulting on credit loans

Fine Particulate Matter Concentration Level Prediction by using Tree-based Ensemble Classification Algorithms

An Experimental Study on Ensemble of Decision Tree Classifiers

Advanced Ensemble Strategies for Polynomial Models

Data mining techniques: decision trees

Chapter 12 Bagging and Random Forests

Using multiple models: Bagging, Boosting, Ensembles, Forests

Ensemble of Classifiers Based on Association Rule Mining

Why Ensembles Win Data Mining Competitions

Roulette Sampling for Cost-Sensitive Learning

Mining Direct Marketing Data by Ensembles of Weak Learners and Rough Set Methods

II. RELATED WORK. Sentiment Mining

Welcome. Data Mining: Updates in Technologies. Xindong Wu. Colorado School of Mines Golden, Colorado 80401, USA

Classification and Regression by randomforest

Journal of Asian Scientific Research COMPARISON OF THREE CLASSIFICATION ALGORITHMS FOR PREDICTING PM2.5 IN HONG KONG RURAL AREA.

Online Forecasting of Stock Market Movement Direction Using the Improved Incremental Algorithm

A Serial Partitioning Approach to Scaling Graph-Based Knowledge Discovery

An Ensemble Method for Large Scale Machine Learning with Hadoop MapReduce

MHI3000 Big Data Analytics for Health Care Final Project Report

Monday Morning Data Mining

Experiments in Web Page Classification for Semantic Web

FilterBoost: Regression and Classification on Large Datasets

Gerry Hobbs, Department of Statistics, West Virginia University

Bootstrapping Big Data

A General Approach to Incorporate Data Quality Matrices into Data Mining Algorithms

Metalearning for Dynamic Integration in Ensemble Methods

How To Identify A Churner

6.2.8 Neural networks for data mining

On Adaboost and Optimal Betting Strategies

Interactive Machine Learning. Maria-Florina Balcan

Operations Research and Knowledge Modeling in Data Mining

Implementation of Breiman s Random Forest Machine Learning Algorithm

Introduction to Machine Learning Lecture 1. Mehryar Mohri Courant Institute and Google Research

Interactive Data Mining and Visualization

Azure Machine Learning, SQL Data Mining and R

How To Make A Credit Risk Model For A Bank Account

How To Perform An Ensemble Analysis

Practical Data Science with Azure Machine Learning, SQL Data Mining, and R

Distributed forests for MapReduce-based machine learning

Solving Regression Problems Using Competitive Ensemble Models

Feature vs. Classifier Fusion for Predictive Data Mining a Case Study in Pesticide Classification

BIOINF 585 Fall 2015 Machine Learning for Systems Biology & Clinical Informatics

Ensemble Learning Better Predictions Through Diversity. Todd Holloway ETech 2008

Beating the NCAA Football Point Spread

AdaBoost. Jiri Matas and Jan Šochman. Centre for Machine Perception Czech Technical University, Prague

Data Mining for Knowledge Management. Classification

Predictive Analytics Techniques: What to Use For Your Big Data. March 26, 2014 Fern Halper, PhD

A Hybrid Approach to Learn with Imbalanced Classes using Evolutionary Algorithms

Learning is a very general term denoting the way in which agents:

ENSEMBLE METHODS FOR CLASSIFIERS

New Ensemble Combination Scheme

Online Algorithms: Learning & Optimization with No Regret.

Performance Analysis of Naive Bayes and J48 Classification Algorithm for Data Classification

Studying Auto Insurance Data

Random Forest Based Imbalanced Data Cleaning and Classification

Data Mining Introduction

Transcription:

Introduction to Machine Learning and Data Mining Prof. Dr. Igor Trajkovski trajkovski@nyus.edu.mk

Ensembles 2

Learning Ensembles Learn multiple alternative definitions of a concept using different training data or different learning algorithms. Combine decisions of multiple definitions, e.g. using weighted voting. Training Data Data1 Data2 Data m Learner1 Learner2 Learner m Model1 Model2 Model m Model Combiner Final Model 3

Value of Ensembles When combing multiple independent and diverse decisions each of which is at least more accurate than random guessing, random errors cancel each other out, correct decisions are reinforced. Human ensembles are demonstrably better How many jelly beans in the jar?: Individual estimates vs. group average. Who Wants to be a Millionaire: Expert friend vs. audience vote. 4

Homogenous Ensembles Use a single, arbitrary learning algorithm but manipulate training data to make it learn multiple models. Data1 Data2 Data m Learner1 = Learner2 = = Learner m Different methods for changing training data: Bagging: Resample training data Boosting: Reweight training data DECORATE: Add additional artificial training data In WEKA, these are called metalearners, they take a learning algorithm as an argument (base learner) and create a new learning algorithm. 5

Bagging Create ensembles by repeatedly randomly resampling the training data (Brieman, 1996). Given a training set of size n, create m samples of size n by drawing n examples from the original data, with replacement. Each bootstrap sample will on average contain 63.2% of the unique training examples, the rest are replicates. Combine the m resulting models using simple majority vote. Decreases error by decreasing the variance in the results due to unstable learners, algorithms (like decision trees) whose output can change dramatically when the training data is slightly changed. 6

Boosting Originally developed by computational learning theorists to guarantee performance improvements on fitting training data for a weak learner that only needs to generate a hypothesis with a training accuracy greater than 0.5 (Schapire, 1990). Revised to be a practical algorithm, AdaBoost, for building ensembles that empirically improves generalization performance (Freund & Shapire, 1996). Examples are given weights. At each iteration, a new hypothesis is learned and the examples are reweighted to focus the system on examples that the most recently learned classifier got wrong. 7

Boosting: Basic Algorithm General Loop: Set all examples to have equal uniform weights. For t from 1 to T do: Learn a hypothesis, h t, from the weighted examples Decrease the weights of examples h t classifies correctly Base (weak) learner must focus on correctly classifying the most highly weighted examples while strongly avoiding overfitting. During testing, each of the T hypotheses get a weighted vote proportional to their accuracy on the training data. 8

AdaBoost Pseudocode TrainAdaBoost(D, BaseLearn) For each example d i in D let its weight w i =1/ D Let H be an empty set of hypotheses For t from 1 to T do: Learn a hypothesis, h t, from the weighted examples: h t =BaseLearn(D) Add h t to H Calculate the error, ε t, of the hypothesis h t as the total sum weight of the examples that it classifies incorrectly. If ε t > 0.5 then exit loop, else continue. Let β t = ε t / (1 ε t ) Multiply the weights of the examples that h t classifies correctly by β t Rescale the weights of all of the examples so the total sum weight remains 1. Return H TestAdaBoost(ex, H) Let each hypothesis, h t, in H vote for ex s classification with weight log(1/ β t ) Return the class with the highest weighted vote total. 9

Learning with Weighted Examples Generic approach is to replicate examples in the training set proportional to their weights (e.g. 10 replicates of an example with a weight of 0.01 and 100 for one with weight 0.1). Most algorithms can be enhanced to efficiently incorporate weights directly in the learning algorithm so that the effect is the same (e.g. implement the WeightedInstancesHandler interface in WEKA). For decision trees, for calculating information gain, when counting example i, simply increment the corresponding count by w i rather than by 1. 10

Experimental Results on Ensembles (Freund & Schapire, 1996; Quinlan, 1996) Ensembles have been used to improve generalization accuracy on a wide variety of problems. On average, Boosting provides a larger increase in accuracy than Bagging. Boosting on rare occasions can degrade accuracy. Bagging more consistently provides a modest improvement. Boosting is particularly subject to overfitting when there is significant noise in the training data. 11

DECORATE (Melville & Mooney, 2003) Change training data by adding new artificial training examples that encourage diversity in the resulting ensemble. Improves accuracy when the training set is small, and therefore resampling and reweighting the training set has limited ability to generate diverse alternative hypotheses. 12

Overview of DECORATE Training Examples Artificial Examples Base Learner Current Ensemble C1 13

Overview of DECORATE Training Examples Artificial Examples Base Learner Current Ensemble C1 C2 14

Overview of DECORATE Training Examples Artificial Examples Base Learner Current Ensemble C1 C2 C3 15

Ensembles and Active Learning Ensembles can be used to actively select good new training examples. Select the unlabeled example that causes the most disagreement amongst the members of the ensemble. Applicable to any ensemble method: QueryByBagging QueryByBoosting ActiveDECORATE 16

ActiveDECORATE Utility = 0.1 Unlabeled Examples Current Ensemble Training Examples DECORATE C1 C2 C3 C4 17

ActiveDECORATE Current Ensemble Utility = 0.1 0.9 0.3 0.2 0.5 Unlabeled Examples Training Examples DECORATE C1 C2 C3 C4 Acquire Label 18

Issues in Ensembles Parallelism in Ensembles: Bagging is easily parallelized, Boosting is not. Variants of Boosting to handle noisy data. How weak should a baselearner for Boosting be? What is the theoretical explanation of boosting s ability to improve generalization? Exactly how does the diversity of ensembles affect their generalization performance. Combining Boosting and Bagging. 19