Code covered by the BSD License  

Highlights from
Boosting Demo

5.0

5.0 | 1 rating Rate this file 100 Downloads (last 30 days) File Size: 13.62 KB File ID: #29245
image thumbnail

Boosting Demo

by Richard Stapenhurst

 

02 Nov 2010

A demo to illustrate the behaviour of Adaboost with various base learners on a few toy datasets.

| Watch this File

File Information
Description

This demo gives a clear visual presentation of what happens during the Adaboost algorithms. It shows how the decision boundary, example weights, training error and base learner weights change during training.

A selection of base learning algorithms are included: Linear Regression, Naive Bayes, Decision Stump, CART (requires stats toolbox), Neural Network (requires netlab) and SVM (requires libsvm). There are also 3 dataset generators (2-gaussians, circle and rotated checkerboard). There is documentation to assist with adding custom base learner algorithms or dataset generators.
The demo allows the choice of base learner and dataset. It is then possible to add one base learner at a time, according to the Adaboost algorithm.

After any number of base learners, the decision boundary and margins are shown on the plot. It is also possible to view two graphs: Error rates (showing how Adaboost affects training and generalisation errors as more base learners are added), and margin distributions (showing the cumulative distribution of margins for the current ensemble).

Base learners appear in a list at the left of the window. These include a checkbox which disables/enables each learner, and a scroll bar that adjusts its weight. This makes it possible to see the consequences of changing the weights assigned by Adaboost.

The Reset button enables all the base learners and sets their weights according to Adaboost. The checkboxes can be right-clicked to disable all other learners and view the impact of only the selected base learner.

MATLAB release MATLAB 7.10 (2010a)
Other requirements Optional requirements: netlab, libsvm, statistics toolbox
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
02 Nov 2010 Alexander Patrushev  
04 Feb 2012 sahar

I find this code very inetrsting,I want to add an other data with inputs is a matrix(n,m) with n>2 and the output is a vector(1,m). But I find error of size of matrix

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
machine learning Richard Stapenhurst 02 Nov 2010 12:30:49
artificial intelligence Richard Stapenhurst 02 Nov 2010 12:30:49
optimization Richard Stapenhurst 02 Nov 2010 12:30:50
gui Richard Stapenhurst 02 Nov 2010 12:30:50
adaboost Richard Stapenhurst 02 Nov 2010 12:30:50
demo Richard Stapenhurst 02 Nov 2010 12:30:50
weighted majority vote Richard Stapenhurst 02 Nov 2010 12:30:50
ensembles Richard Stapenhurst 02 Nov 2010 12:30:50
classifier committee Richard Stapenhurst 02 Nov 2010 12:30:50
boosting Richard Stapenhurst 02 Nov 2010 12:30:50
margins Richard Stapenhurst 02 Nov 2010 12:30:50
ensemble methods Richard Stapenhurst 02 Nov 2010 12:30:50
adaboost Kaoru 26 May 2011 22:29:40

Contact us at files@mathworks.com