码迷,mamicode.com
首页 > 其他好文 > 详细

Boosting理解

时间:2015-09-02 23:22:13      阅读:415      评论:0      收藏:0      [点我收藏+]

标签:

俗话说的好,三个臭皮匠顶个诸葛亮。Boosting大概就是做这种事情,也可以理解是一个很牛的企业管理者,充分的利用底下员工的各种优点,合理发挥每个人的能量。

简单的理解boosting就是把很多个不同的classifiers使用不同的权重组合起来成一个新的strong classifier进行分类工作。

把我的学习笔记记录一下吧,以供以后使用这个算法的时候参考。

技术分享

How to obtain the rough rule of thumb?

How to combine this rule of thumbs to get a good thumb?

What is the procedure to choose examples in each of rounds?


a)What is the procedure to choose examples in each of rounds?

We‘ll focus on the hardest examples so that we will choose the examples that the previous thumb misclassified.


b)How to combine this rule of thumbs to get a good thumb?

To take a majority vote or weighted majority vote.

 

技术分享

技术分享

Change a subset of examples to construct distribution D_t

That‘s the same thing.

The weight of D_t stands for how we concentrate on a particular round of boosting.

Combine all of h_t into a H_final classifier.

Q:

1.how do you construct the distribution D_t

2.how do we combine all of h_t into a H_final classifier?

AdaBoosting can solve this two questions.

A:

1.At the very first round, we don‘t have any information. We use uniform distribution weight.

At the following rounds, we try to focus on incorrectly classified examples. We cut the weight of the examples that are correctly classified.

2.

技术分享

This formular is the weight vote of weak thumbs.

技术分享

There‘s ten samples and three samples are misclassified.

So epsilon_1 = 3 / 10 = 0.30.


The alpha_t may bigger if one classifier has less error rate.

The classifier is a black box, so that you can choose whatever method that sitting around.

 

最后附上我自己使用Python实现的adaboosting的一个package或者说class供参考。如有错误请多不吝指正。

https://gitcafe.com/NeighborhoodGuo/Ada_boosting.git

 

Reference:

1.Adaboost Matlab Code

2.Boosting resources collected by Lyon

3.Boosting.org

4.MIT: Simple object detector with boosting

5.Boosting_VideoLectures.NET

6.Boosting算法简介-百度技术博客

Boosting理解

标签:

原文地址:http://www.cnblogs.com/NeighborhoodGuo/p/4779585.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!