亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ganders.m

?? 一個關于SVM支持向量機的計算例程, 用MATLAB做的,請多指教
?? M
字號:
function [alpha,theta,solution,minr,t,maxerr]=...   ganders(MI,SG,J,tmax,stopCond,t,alpha,theta)
% GANDERS algorithm solving Generalized Anderson's task.% [alpha,theta,solution,minr,t,maxerr]=...%    ganders(MI,SG,J,tmax,rdelta,t,alpha,theta)
%% GANDERS is implementation of the general algorithm framework that finds %   optimal solution of the Generalized Anderson's task (GAT). %%   The GAT solves problem of finding a separationg hyperplane %   (alpha'*x = theta) between two classes such that found solution minimizes %   the probability of bad classification. Both classes are described in term %   of the conditional probability density functions p(x|k), where x is %   observation and k is class label (1 for the first and 2 for the second %   class). The p(x|k) for both the classes has normal distribution but its %   genuine parameters are not know only finite set of possible parameters %   is known. %%   The algorithms works iteratively until the change of the solution quality %   in two consequential steps is less then given limit rdelta %   (radius of the smallest ellipsoid) or until the number of steps, %   the algorithm performed, exceeds given limit tmax.%% Input:% (K is number of input parameters, N is dimension of feature space.)%% GANDERS(MI,SIGMA,J,tmax,rdelta)%   MI [NxK] contains K column vectors of mean values MI=[mi_1,mi_2...mi_K],%      where mi_i is i-th column vector N-by-1. %   SIGMA [N,(K*N)] contains K covariance matrices,%      SIGMA=[sigma_1,sigma_2,...sigma_K], where sigma_i is i-th matrix N-by-N.
%   J [1xK] is vector of class labels J=[label_1,label_2,..,class_K], where
%      label_i is an integer 1 or 2 according to which class the pair 
%      {mi_i,sigma_i} describes.
%   tmax [1x1] is maximal number of steps of algorithm. Default is inf 
%      (it exclude this stop condition).
%   rdelta [1x1] is positive real number (including 0 that exclude this 
%      stop condition) which determines stop condition - it works until
%      the change of solution quality (radius of the smallest ellipsoid)
%      is less than rdelta the algorithm exits.
%
% GANDERS(MI,SIGMA,J,tmax,rdelta,t,alpha,theta) begins from state given by
%   t [1x1] begin step number.
%   alpha [Nx1], theta [1x1] are state variables of the algorithm.
%
% Returns:
%   alpha [Nx1] is normal vector of found separating hyperplane.
%   theta [1x1] is threshold of separating hyperplane (alpha'*x=theta).
%   solution [1x1] is equal to -1 if solution does not exist,
%      is equal to 0 if solution is not found,
%      is equal to 1 if is found.
%   minr [1x1] is radius of the smallest ellipsoid correseponding to the %      quality of found solution.%   t [1x1] is number of steps the algorithm performed.%   maxerr [1x1] is upper bound of probabillity of bad classification.%% See also OANDERS, EANDERS, GGANDERS, GANDERS2%% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz% Written Vojtech Franc (diploma thesis) 24.10.1999, 6.5.2000% Modifications% 30-August-2001, V.Franc, mistake repared, dalpha = dalpha/norm(dalpha) removed% 24. 6.00 V. Hlavac, comments polished.MINEPS_TMAX=1e2;    % max # of iter. in epsilon minimization% default arguments settingif nargin < 3,   error('Not enought input arguments.');endif nargin < 4,   tmax = inf;end
%%% Gets stop conditionif nargin < 5,   stopCond = 0;endif length(stopCond)==2,  stopT=stopCond(2);else  stopT=1;enddeltaR=stopCond(1);%##debugcond=2;stopT=100;if nargin < 6,   t=0;end% perform transformation
if nargin < 8,   [alpha,MI,SG]=ctransf(0,0,MI,J,SG);else   [alpha,MI,SG]=ctransf(alpha,theta,MI,J,SG);end% get dimension N and number of distributionsN=size(MI,1);K=size(MI,2);% STEP (1)if t==0,   [alpha,alphaexists]=csvm(MI);
   % if alpha don`t exist than error can not be less that 50%
   if alphaexists==1,
      t=1;
   else
      % no feasible solution can be found, so that exit algorithm
      alpha=zeros(N,1); theta=0; minr=0;
      solution=-1;
      return;
   end
   tmax=tmax-1;
end

% STEP (2.1)
% find the minimal radius of all the  ellipsoids
%[minrs,minri]=min( (alpha'*MI)./sqrt( reshape(alpha'*SG,N,K)'*alpha )' );
%minr=minrs(1);rka=(alpha'*MI)./sqrt( reshape(alpha'*SG,N,K)'*alpha )';[minr,inx]=min(rka);minri=find((rka-0.0001) <= minr);lastminr=minr;queueMinR=[];  % queue of the best solutions, stopT steps backwardt0=0;   % counter of performed iterations in this call of the function% t, is the whole number of iterations, i.e. t(end_fce)=t(begin_fce)+t0;% iterations cycle
solution=0;
while solution==0 & tmax > 0 & t ~= 0,   tmax = tmax-1;   % STEP (2.2)   % compute contact points and negative error function derivation   Y0=zeros(N,length(minri));   for i=1:length(minri),      j=minri(i);     % computes point of contact
      x0=MI(:,j)-(( alpha'*MI(:,j) )/...               (alpha'*SG(:,(j-1)*N+1:j*N)*alpha))*SG(:,(j-1)*N+1:j*N)*alpha;      Y0(:,i) = x0/sqrt( alpha'*SG(:,(j-1)*N+1:N*j)*alpha );   end   % find direction delta_alpha in which error decreases   [dalpha,dalphaexists]=csvm(Y0); %   dalpha=dalpha/norm(dalpha);      if dalphaexists == 1, %      alpha=alpha/norm(alpha);%      dalpha=dalpha/norm(dalpha);           % STEP (3)      % find t=arg min max epsilon(alpha+t*dalpha, MI, SG )
       alpha=mineps(MI,SG,alpha,dalpha,MINEPS_TMAX,0);%      alpha=minepsvl(MI,SG,alpha,dalpha,MINEPS_TMAX,0);%      alpha=minepsrt(MI,SG,alpha,dalpha)
;      % find the minimal radius of all the  ellipsoids%      [minrs,minri]=min( (alpha'*MI)./sqrt( reshape(alpha'*SG,N,K)'*alpha )' );%      minr=minrs(1);
%      minri      rka=(alpha'*MI)./sqrt( reshape(alpha'*SG,N,K)'*alpha )';      [minr,inx]=min(rka);      minri=find((rka-0.0001) <= minr);%      minrinx=minri   end
   %% incereases iteration counter   t=t+1;   t0=t0+1;   %%%% Stop criterion %%%%%%%%%%%%%%%%   if dalphaexists == 0,      solution=1;      t=t-1;   else % if cond == 1,          %%% the second stop condition      if t0 > stopT,        if (minr-queueMinR(1)) < deltaR,	     solution = 1;         t=t-1;        end        % a queue of the best solutions        queueMinR=[queueMinR(2:end),minr];        else        queueMinR=[queueMinR,minr];      end   end   % store old value of minr   lastminr=minr;end% inverse transformation[alpha,theta]=ictransf(alpha);% upper bound of prob. of bad classificationmaxerr=1-cdf('norm',minr,0,1);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美久久久久久久久中文字幕| 国产精品69毛片高清亚洲| 欧美优质美女网站| 一区二区三区在线视频观看58| 在线观看亚洲成人| 日韩不卡一二三区| 欧美成人aa大片| 国产91精品露脸国语对白| 综合久久久久久| 欧美三级电影网| 黄色日韩网站视频| 中文字幕一区二区三区不卡| 91成人在线免费观看| 性做久久久久久免费观看欧美| 欧美大胆一级视频| 成人av网站免费| 亚洲高清视频的网址| 精品va天堂亚洲国产| 99精品视频免费在线观看| 五月天激情综合| 国产香蕉久久精品综合网| 色悠悠亚洲一区二区| 日韩中文字幕亚洲一区二区va在线| 在线区一区二视频| 日韩精品一区二区三区中文不卡 | 99久久99久久综合| 亚洲一区视频在线观看视频| 精品成人一区二区三区| 色哟哟一区二区三区| 成年人午夜久久久| 青娱乐精品视频| 中文字幕一区在线观看视频| 日韩一区二区三区视频在线| 99精品久久99久久久久| 日韩av午夜在线观看| 国产精品久久久久久妇女6080 | 韩国av一区二区三区四区 | 欧美日韩精品一区二区三区蜜桃| 国产在线一区二区| 偷拍一区二区三区| 国产精品久久久久永久免费观看 | 欧美激情一区二区三区蜜桃视频| 欧美色综合天天久久综合精品| 韩国在线一区二区| 日韩av电影天堂| 夜夜嗨av一区二区三区中文字幕| 久久久夜色精品亚洲| 欧美一区二区福利视频| 91福利在线导航| av不卡在线播放| 国产精品综合二区| 久久99精品久久久| 日韩中文字幕av电影| 亚洲香肠在线观看| 亚洲精品国产视频| 中文字幕亚洲成人| 欧美激情一区二区三区四区| 欧美精品一区二区在线观看| 欧美一区三区四区| 欧美日韩国产影片| 欧美影片第一页| 在线免费亚洲电影| 色视频成人在线观看免| 91丨九色丨黑人外教| 成人激情av网| 成人激情免费电影网址| 懂色av中文一区二区三区| 韩国av一区二区| 九九九久久久精品| 久久精品国内一区二区三区| 免费成人小视频| 欧美aaa在线| 久久成人免费网站| 久久精品国产亚洲aⅴ| 久久精品国产一区二区三| 久久国产精品99精品国产 | 欧美色爱综合网| 欧美性猛交xxxxxx富婆| 欧美日韩国产美女| 欧美一区二区网站| 欧美岛国在线观看| 久久久久久久网| 国产精品丝袜久久久久久app| 欧美激情一区二区在线| 亚洲天堂2016| 亚洲午夜精品网| 免费成人美女在线观看.| 看国产成人h片视频| 国产在线一区二区综合免费视频| 国产精品中文字幕日韩精品 | 91国模大尺度私拍在线视频| 日本黄色一区二区| 欧美久久久久久蜜桃| 欧美变态口味重另类| 久久综合色一综合色88| 国产精品区一区二区三区| 亚洲欧美在线视频观看| 亚洲成人自拍一区| 精品一区二区免费看| 丁香另类激情小说| 欧美亚洲国产一区二区三区va| 欧美男男青年gay1069videost| 日韩一区二区三区免费看| 欧美国产精品专区| 夜色激情一区二区| 老司机精品视频线观看86| 成人免费视频国产在线观看| 在线看国产一区| 欧美成人a∨高清免费观看| 中文字幕色av一区二区三区| 性做久久久久久久免费看| 国产老女人精品毛片久久| 91久久一区二区| 26uuu久久综合| 有码一区二区三区| 国产精品自产自拍| 欧美色视频一区| 国产日韩欧美高清在线| 亚洲va韩国va欧美va精品 | 99久精品国产| 欧美一区二区三区影视| 亚洲少妇最新在线视频| 久久激情综合网| 欧美性xxxxxxxx| 中文字幕+乱码+中文字幕一区| 五月天丁香久久| 91麻豆免费视频| 亚洲精品一区二区三区精华液| 成人va在线观看| 日韩一区二区三区观看| 亚洲女人小视频在线观看| 国产一区二区三区在线观看免费| 在线影院国内精品| 欧美极品aⅴ影院| 久久精品国产秦先生| 欧美色图在线观看| 自拍视频在线观看一区二区| 国产精品资源网站| 欧美xxx久久| 日本午夜精品视频在线观看| 色婷婷亚洲综合| 中文字幕中文字幕一区二区| 国产美女主播视频一区| 91精品国产日韩91久久久久久| 亚洲嫩草精品久久| 成人免费高清在线| 久久久欧美精品sm网站| 蜜桃视频一区二区三区| 欧美男人的天堂一二区| 亚洲一区二区三区在线| 91影视在线播放| 亚洲同性gay激情无套| 成人免费的视频| 中文字幕乱码亚洲精品一区| 国内精品免费**视频| 日韩视频在线观看一区二区| 香蕉乱码成人久久天堂爱免费| 日本精品一区二区三区四区的功能| 中文字幕 久热精品 视频在线 | 麻豆精品新av中文字幕| 欧美日韩电影在线| 视频一区免费在线观看| 欧美精品久久99| 青青草97国产精品免费观看 | 国产精品美女久久久久久久| 国产精品综合网| 国产日韩欧美精品电影三级在线| 国产乱子伦一区二区三区国色天香| 精品美女在线播放| 国内外成人在线视频| 国产欧美视频一区二区三区| 丁香婷婷综合激情五月色| 国产精品网站在线播放| 91在线免费播放| 亚洲一区二区在线视频| 欧美疯狂做受xxxx富婆| 美女视频黄免费的久久 | 日韩精品一区二区三区中文精品| 麻豆国产精品777777在线| 欧美精品一区二区三区蜜桃| 国内精品第一页| 国产精品午夜电影| 日本高清免费不卡视频| 亚洲h动漫在线| 精品国产一区二区三区久久影院| 国产美女视频91| 最新日韩在线视频| 欧美亚洲综合久久| 六月丁香婷婷色狠狠久久| 久久久久久久综合日本| 91麻豆国产精品久久| 午夜精品免费在线| 久久综合99re88久久爱| av男人天堂一区| 日韩中文字幕麻豆| 国产日韩欧美高清在线| 久久九九全国免费| 91行情网站电视在线观看高清版| 石原莉奈一区二区三区在线观看| 久久网站最新地址|