Introduction - If you have any usage issues, please Google them yourself
Demo of adaBoost (adaptive boosting)
Xu Cui
2009/05/12
clear
training data (1000 samples, 2 dimensions, can be seen as 1000 people, each people have 2 variable: weight and age)
data = randn(1000,2) 1000 number (x,y) 2d
label = double(data(:,1)>data(:,2)) a linear separation example
label = double((data(:,1).^2 - data(:,2).^2)<1) a nonlinear separation example
label = double((data(:,1).^2 + data(:,2).^2)<1) a nonlinear separation example