Classic AdaBoost Classifier

버전 1.5.0.0 (4.07 KB) 작성자: Dirk-Jan Kroon
Weak threshold classifier boosted to strong Classifier with Adaboost
다운로드 수: 19.6K
업데이트 날짜: 2012/1/20

라이선스 보기

This a classic AdaBoost implementation, in one single file with easy understandable code.

The function consist of two parts a simple weak classifier and a boosting part:
The weak classifier tries to find the best threshold in one of the data dimensions to separate the data into two classes -1 and 1
The boosting part calls the classifier iteratively, after every classification step it changes the weights of miss-classified examples. This creates a cascade of "weak classifiers" which behaves like a "strong classifier"
.
Training mode:
[estimateclass,model]=adaboost('train',datafeatures,dataclass,itt)
Apply mode:
estimateclass=adaboost('apply',datafeatures,model)

inputs/outputs:
datafeatures : An Array with size number_samples x number_features
dataclass : An array with the class off all examples, the class
can be -1 or 1
itt : The number of training iterations
model : A struct with the cascade of weak-classifiers
estimateclass : The by the adaboost model classified data

.
Please leave a comment, if you like the code, find a bug or have a suggestion.

인용 양식

Dirk-Jan Kroon (2024). Classic AdaBoost Classifier (https://www.mathworks.com/matlabcentral/fileexchange/27813-classic-adaboost-classifier), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Classification에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.5.0.0

Fixed boundary bug

1.4.0.0

Speed improvement (Replaced loops by 1D indexing and bsxfun operations.)
The function now limits features of the test data to the outer-boundaries of training data.

1.3.0.0

Changed bug : ndims(datafeatures)to size(datafeatures,2)

1.2.0.0

Solved division by zero, causing NaN

1.1.0.0

Changed Screenshot and example figure

1.0.0.0