• 大小: 152KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-12
  • 语言: Matlab
  • 标签: SVM;  matlab  

资源简介

基于支持向量机的自适应与优化,包含论文SVM Incremental Learning Adaptation and Optimization - Diehl and Cauwenberghs - 2003的文章和源代码

资源截图

代码片段和文件信息

% BOOKKEEPING - Updates the status of example indss and modifies the corresponding
%               coefficient a(indss) in certain cases to avoid numerical errors.
%
% Syntax: [indcoi] = bookkeeping(indsscstatusnstatus)
%
%     indco: matrix row/col to remove from Rs and Q if removing a margin vector
%         i: when i > 0 the i-th element was removed from ind{RESERVE}
%     indss: the example changing status
%   cstatus: current status of the example
%   nstatus: new status of the example
%
%            example status values:
%            1: margin vector
%            2: error vector
%            3: reserve vector
%            4: unlearned vector
%
% Version 3.22 -- Comments to diehl@alumni.cmu.edu
%

function [indcoi] = bookkeeping(indsscstatusnstatus)

indco = -1;
i = 0;
if (cstatus ~= nstatus)

% flags for example state
MARGIN    = 1;
ERROR     = 2;
RESERVE   = 3;
    UNLEARNED = 4;

% define global variables
global a;     % the alpha coefficients
global C;     % regularization parameters
global ind;   % cell array containing indices of margin error reserve and unlearned vectors           
                
% adjust coefficient to avoid numerical errors if necessary
switch nstatus
case RESERVE
   a(indss) = 0;
case ERROR
   a(indss) = C(indss);
end;

% if the example is currently a margin vector determine the row
% in the extended kernel matrix inverse that needs to be removed
if (cstatus == MARGIN)
    indco = find(indss == ind{MARGIN}) + 1;
end;

% change the status of the example
switch nstatus
case RESERVE
    [ind{cstatus}i] = move_indr(ind{cstatus}indss);
otherwise
   [ind{cstatus}ind{nstatus}] = move_ind(ind{cstatus}ind{nstatus}indss);
end;
 
end;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\
     文件        4238  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\README
     文件      133403  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\SVM Incremental Learning Adaptation and Optimization - Diehl and Cauwenberghs - 2003.pdf
     文件        1787  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\bookkeeping.m
     文件        1681  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\gestloo.m
     文件       12111  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\gpl.txt
     文件         835  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\kernel.m
     文件         271  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\kevals.m
     文件         216  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\kevalsreset.m
     文件        4843  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\learn.m
     文件        1465  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\loadclass.m
     文件        3782  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\looest.m
     文件        1416  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\min_delta.m
     文件        4490  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\min_delta_acb.m
     文件        3640  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\min_delta_p_c.m
     文件        4243  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\min_delta_p_s.m
     文件         596  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\move_ind.m
     文件        1446  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\move_indr.m
     文件        1868  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\nonlindata100.mat
     文件         268  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\perts.m
     文件        6877  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\perturbc.m
     文件        7729  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\perturbk.m
     文件        1836  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\plot2dkm.m
     文件        1373  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\saveclass.m
     文件        2553  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\svmeval.m
     文件        4625  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\svmloo.m
     文件        7510  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\svmtrain.m
     文件       10118  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\svmtrain2.m
     文件         759  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\testresults.txt
     文件        6008  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\unlearn.m
     文件        2138  2011-10-17 17:06  Incremental-SVM-Learning-in-MATLAB-master\updateRQ.m
............此处省略0个文件信息

评论

共有 条评论