• 大小: 280KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-12
  • 语言: Matlab
  • 标签: adaboost  

资源简介

adaboost算法Matlab代码及训练数据,非常实用

资源截图

代码片段和文件信息

%%
% File Name: AdaBoost
% This is the implementation of the ada boost algorithm.
% Parameters - very easy to guess by name...
% Return values: i - hypothesis-index  vector.
%                t - threshhols vector
%                beta - weighted beta.
%%
function boosted=adaBoost(traintrain_labelcycles)
    disp(‘running adaBoost algorithm‘);
    d=size(train);
distribution=ones(1d(1))/d(1);
error=zeros(1cycles);
beta=zeros(1cycles);
label=(train_label(:)>=5);% contain the correct label per vector
for j=1:cycles
        if(mod(j10)==0)
            disp([jcycles]);
        end
[it]=weakLearner(distributiontrainlabel);
    error(j)=distribution*abs(label-(train(:i)>=t));
    beta(j)=error(j)/(1-error(j));
    boosted(j:)=[beta(j)it];
    distribution=distribution.* exp(log(beta(j))*(1-abs(label-(train(:i)>=t))))‘;
    distribution=distribution/sum(distribution);
end
    
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2274  2003-05-15 02:41  adaboost算法Matlab代码\ABdemo\AdaBoost.m

     文件        262  2003-02-27 19:34  adaboost算法Matlab代码\ABdemo\AdaBoostClassify.m

     文件       1952  2002-05-19 06:14  adaboost算法Matlab代码\ABdemo\SingleWeakLearner.m

     文件       2937  2003-05-15 02:41  adaboost算法Matlab代码\ABdemo\SingleWeakLearnerROC.m

     文件       1018  2003-02-27 19:34  adaboost算法Matlab代码\ABdemo\StrongClassify.m

     文件        935  2003-02-27 19:34  adaboost算法Matlab代码\ABdemo\TestAdaBoost.m

     文件       2405  2003-05-20 14:53  adaboost算法Matlab代码\ABdemo\Toy.m

     文件        820  2003-02-27 19:34  adaboost算法Matlab代码\ABdemo\WeakClassify.m

     文件       1242  2002-05-19 06:28  adaboost算法Matlab代码\ABdemo\WeakClassifyBatch.m

     文件        712  2003-02-27 17:55  adaboost算法Matlab代码\ABdemo\WeakClassifyROC.m

     文件       1507  2003-05-15 02:41  adaboost算法Matlab代码\ABdemo\WeakLearner.m

     目录          0  2011-02-05 17:54  adaboost算法Matlab代码\ABdemo

     目录          0  2010-12-09 10:26  adaboost算法Matlab代码

     文件        907  2005-07-29 10:13  70271125adaboost-Matlab\Adaboost_train\adaBoost.m

     文件        757  2002-07-26 09:31  70271125adaboost-Matlab\Adaboost_train\getError.m

     文件       2030  2003-12-20 17:12  70271125adaboost-Matlab\Adaboost_train\runAdaBoosting.m

     文件         97  2002-09-16 10:42  70271125adaboost-Matlab\Adaboost_train\start.m

     文件     514824  2002-07-25 13:50  70271125adaboost-Matlab\Adaboost_train\usps.mat

     文件        310  2003-12-16 19:17  70271125adaboost-Matlab\Adaboost_train\weakLearner.m

     文件       2274  2003-05-15 02:41  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\AdaBoost.m

     文件        262  2003-02-27 19:34  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\AdaBoostClassify.m

     文件       1952  2002-05-19 06:14  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\SingleWeakLearner.m

     文件       2937  2003-05-15 02:41  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\SingleWeakLearnerROC.m

     文件       1018  2003-02-27 19:34  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\StrongClassify.m

     文件        935  2003-02-27 19:34  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\TestAdaBoost.m

     文件       2405  2003-05-20 14:53  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\Toy.m

     文件        820  2003-02-27 19:34  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\WeakClassify.m

     文件       1242  2002-05-19 06:28  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\WeakClassifyBatch.m

     文件        712  2003-02-27 17:55  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\WeakClassifyROC.m

     文件       1507  2003-05-15 02:41  70271125adaboost-Matlab\adaboost算法Matlab代码\ABdemo\WeakLearner.m

............此处省略7个文件信息

评论

共有 条评论