Skip to content

ToshikiShawn/AdaBoost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

AdaBoost

AdaBoost via Weighted Least Squares

This is a code for AdaBoost via Weighted Least Squares.

experiment

I used breast cancer datasets from sk-learn. choose 80% of data as training data and 20% of data as test data. confusion matrix of test data is as follows. It showed accuracy of 95.6%.

confusion matrix

|Actual class|--Predic class---|
|------------|Positive|Negative|
|--Positive--|---43---|----4---|
|--Negative--|----1---|---66---|

Algorithm

Initialize weights for n = 1, ..., N

for m = 1, ..., M

calculate error rate and reliablity

update weights

make a predictor

About

AdaBoost via Weighted Least Squares

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages