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

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

?? ganders.m

?? 四種支持向量機用于函數擬合與模式識別的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一区二区三区免费野_久草精品视频
国内久久精品视频| 日韩av一区二区在线影视| 精品国产一区二区三区忘忧草| 日本精品一级二级| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 欧美国产禁国产网站cc| 精品成人佐山爱一区二区| 精品国产a毛片| 日本一区二区三级电影在线观看 | 青青草97国产精品免费观看无弹窗版 | 日韩影视精彩在线| 欧美a一区二区| 国产一区 二区| hitomi一区二区三区精品| www.亚洲精品| 欧美日韩视频专区在线播放| 欧美一区二区三区播放老司机| 日韩免费高清电影| 欧美国产日韩在线观看| 亚洲免费观看高清完整版在线观看熊| 亚洲女同ⅹxx女同tv| 午夜一区二区三区在线观看| 日本不卡一区二区三区| 国产精品亚洲а∨天堂免在线| 91在线云播放| 日韩一级片网站| 久久精品免费在线观看| 亚洲欧美日韩国产一区二区三区| 日韩精品乱码av一区二区| 国产另类ts人妖一区二区| 欧美性videosxxxxx| 日韩欧美成人午夜| 亚洲情趣在线观看| 激情亚洲综合在线| 欧美中文字幕久久| 久久久综合精品| 日日夜夜精品视频天天综合网| 国产精品系列在线播放| 欧美午夜影院一区| 久久影院午夜论| 日精品一区二区| 91麻豆产精品久久久久久| 精品国内二区三区| 日韩综合一区二区| 日本精品免费观看高清观看| 精品1区2区在线观看| 亚洲最大成人综合| jizzjizzjizz欧美| 久久奇米777| 另类调教123区| 欧美精品日韩一本| 亚洲激情成人在线| 成人av综合一区| 亚洲精品一区二区三区精华液 | a亚洲天堂av| 精品国产1区2区3区| 亚洲成a人v欧美综合天堂下载| 成人av动漫在线| 国产日韩亚洲欧美综合| 美腿丝袜亚洲一区| 欧美精品高清视频| 亚洲综合久久av| 色婷婷av一区二区三区软件| 国产精品久久久久久久久晋中| 狠狠色丁香婷婷综合| 欧美电影免费观看高清完整版在线观看| 亚洲最大成人综合| 欧美亚洲自拍偷拍| 一区二区理论电影在线观看| 日本电影亚洲天堂一区| 自拍av一区二区三区| 色综合视频在线观看| 亚洲欧美日韩国产一区二区三区| 97国产精品videossex| 国产精品国产三级国产有无不卡| 国产99久久久精品| 中文字幕第一区二区| 成人黄色一级视频| 曰韩精品一区二区| 欧美精品123区| 男人的天堂久久精品| 欧美sm美女调教| 国产在线精品一区二区不卡了 | 国产喷白浆一区二区三区| 国产成人精品aa毛片| 国产精品国产三级国产专播品爱网| 成人开心网精品视频| 亚洲女与黑人做爰| 欧美久久免费观看| 狠狠色狠狠色合久久伊人| 欧美激情一区在线观看| 91免费观看在线| 男女男精品网站| 欧美国产日韩亚洲一区| 欧美在线看片a免费观看| 日本午夜一本久久久综合| 欧美精品一区二区久久久| 成人免费高清在线| 亚洲国产欧美在线| 日韩欧美一级在线播放| 成人亚洲一区二区一| 亚洲图片欧美综合| 久久久av毛片精品| 欧美日韩一区高清| 韩国精品在线观看| 亚洲美女在线国产| 日韩欧美一区电影| 91麻豆免费看片| 久久99热这里只有精品| 国产精品高潮久久久久无| 制服丝袜亚洲播放| 99国产精品久久久久久久久久| 亚洲国产日韩a在线播放| 久久久久国产精品麻豆| 欧美偷拍一区二区| av影院午夜一区| 狠狠色丁香久久婷婷综| 一区二区三区高清在线| 久久毛片高清国产| 欧美一区二区三区视频免费播放| 成人一级黄色片| 麻豆91免费看| 亚洲va天堂va国产va久| 国产精品久久久久久久午夜片| 日韩欧美你懂的| 欧美精品一卡二卡| 在线观看一区二区视频| 国产精品一二三四| 免费看黄色91| 午夜天堂影视香蕉久久| 国产精品麻豆一区二区| 久久久久久日产精品| 欧美一区二区三区精品| 欧美三级在线播放| 在线免费观看日本欧美| 99久久婷婷国产综合精品电影| 国产精品一区三区| 极品少妇一区二区| 免费成人结看片| 日本伊人色综合网| 天堂va蜜桃一区二区三区| 亚洲一区二区五区| 亚洲愉拍自拍另类高清精品| 自拍偷自拍亚洲精品播放| 国产精品久久国产精麻豆99网站| 国产日韩欧美麻豆| 国产日韩欧美制服另类| 欧美国产日韩一二三区| 中文字幕精品—区二区四季| 欧美极品另类videosde| 国产女主播一区| 国产精品麻豆欧美日韩ww| 国产精品色在线观看| 欧美激情一区二区三区蜜桃视频| 国产日韩av一区| 中文字幕一区二区三区四区不卡 | 国产乱码一区二区三区| 国产精品资源在线| 成人在线一区二区三区| 成人免费高清在线| 91美女在线看| 欧美日韩综合不卡| 日韩欧美综合一区| 久久综合九色综合97婷婷女人| 久久中文字幕电影| 中文字幕制服丝袜成人av| 亚洲一区二区在线播放相泽| 日韩高清国产一区在线| 国产在线一区二区| 99久久精品免费看国产| 精品视频123区在线观看| 日韩欧美国产午夜精品| 久久久久久麻豆| 一区二区三区四区在线免费观看| 亚洲成人先锋电影| 国产一区在线观看麻豆| 99国产欧美久久久精品| 4438x亚洲最大成人网| 久久久久久久综合日本| 樱花草国产18久久久久| 激情国产一区二区| 色婷婷激情一区二区三区| 欧美一级二级在线观看| 国产精品人人做人人爽人人添| 一区二区三区欧美| 激情小说欧美图片| 91久久精品国产91性色tv| 日韩精品一区二区三区三区免费| 国产精品网站一区| 三级久久三级久久久| 成人久久视频在线观看| 3d动漫精品啪啪1区2区免费| 国产人伦精品一区二区| 三级影片在线观看欧美日韩一区二区| 国产成人综合视频| 91精品国产欧美日韩| 国产精品欧美一区二区三区| 日产国产高清一区二区三区| 一本久久a久久免费精品不卡| 欧美zozo另类异族|