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

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

?? demo_svm.m

?? support vector machine的一個matlab工具箱
?? M
?? 第 1 頁 / 共 2 頁
字號:
function result = demo_svm(action,hfigure,varargin)% DEMO_SVM Demo on Support Vector Machines.%% Synopsis:%  demo_svm%% Description:%  DEMO_SVM demonstrates algorithms training the binary %   SVM classifier L1-soft and L2-soft margin [Vapnik95]%   [Cris00]. The input training vectors must be 2-dimensional %   and can be interactively created by the user.%%  Following algorithms can be tested:%%  - Sequential Minimal Optimizer (SMO) for L1-norm soft margin.%  - QP solver (quadprog) used to train SVM with L2-norm soft margin.%  - Kernel Perceptron for separable hyperplane.%% Control:%  Algorithm       - algorithm for testing.%  Kernel          - non-linear kernel.%  Kernel argument - argument of the non-linear kernel.%  C-constant      - trade-off (regularization) constant.%  parameters      - parameters of the selected algorithm.%  background      - if selected then the background color%     denotes the sign and the intenzity denotes the value %     of the found decision function.%%  FIG2EPS     - exports screen to the PostScript file.%  Load data   - loads input training sets from file.%  Create data - calls program for creating point sets.%  Reset       - clears the screen.%  Train SVM   - trains and displays the SVM classifer.%  Info        - calls the info box.%  Close       - close the program.%% See also %  SMO, SVMQUADPROG, KPERCEPTR.%% About: Statistical Pattern Recognition Toolbox% (C) 1999-2003, Written by Vojtech Franc and Vaclav Hlavac% <a href="http://www.cvut.cz">Czech Technical University Prague</a>% <a href="http://www.feld.cvut.cz">Faculty of Electrical Engineering</a>% <a href="http://cmp.felk.cvut.cz">Center for Machine Perception</a>% Modifications:% 2-june-2004, VF% 18-July-2003, VF% 6-march-2002, V.Franc% 23-oct-2001, V.FrancBORDER=0.2;          % minimal space between axis and pointsDATA_IDENT='Finite sets, Enumeration';  % file identifierALGOS=['SMO (L1)          ';...       'QUADPROG (L2)     ';...       'Kernel-Perceptron '];KERNELS=['Linear    ';...         'Polynomial';...         'RBF       '];SMO_PARAM = 'epsilon,tolerance';DEF_SMO_PARAM = '1e-3,1e-3';KERNELSK_PARAM = 'epsilon,iter_limit';DEF_KERNELSK_PARAM = '1e-3,inf';KPERCEPTR_PARAM = 'tmax';DEF_KPERCEPTR_PARAM = 'inf';% if number of arguments is less then 1, that means first call of this% function. Every other calls set up at least argument actionif nargin < 1,   action = 'initialize';end% what action is required ?switch lower(action)case 'initialize'   % == Initialize user interface control and figure =======   % == Figure =============================================   left=0.1;   width=0.8;   bottom=0.1;   height=0.8;   hfigure=figure('Name','Support Vector Machines', ...      'Visible','off',...      'NumberTitle','off', ...      'Units','normalized', ...      'Position',[left bottom width height],...      'Units','normalized', ...      'tag','demo_svm');   % == Axes =========================================   left=0.1;   width=0.65;   bottom=0.35;   height=0.60;   haxes=axes(...      'Units','normalized', ...      'UserData',[],...      'Position',[left bottom width height]);   xlabel('feature x');   ylabel('feature y');   % == Comment window =================================   % Comment Window frame   bottom=0.05;   height=0.2;   uicontrol( ...        'Style','frame', ...        'Units','normalized', ...        'Position',[left bottom width height], ...        'BackgroundColor',[0.5 0.5 0.5]);   % Text label   uicontrol( ...        'Style','text', ...        'Units','normalized', ...        'Position',[left height-0.01 width 0.05], ...        'BackgroundColor',[0.5 0.5 0.5], ...        'ForegroundColor',[1 1 1], ...        'String','Comment Window');   % Edit window   border=0.01;   hconsole=uicontrol( ...        'Style','edit', ...        'HorizontalAlignment','left', ...        'Units','normalized', ...        'Max',10, ...        'BackgroundColor',[1 1 1], ...        'Position',[left+border bottom width-2*border height-0.05], ...        'Enable','inactive',...        'String','');   % == Buttons ===========================================      % Export to EPS    width=0.1;   left=0.75-width;   bottom=0.95;   height=0.04;   hbt_close = uicontrol(...    'Units','Normalized', ...      'Callback','fig2eps(gcf)',...        'ListboxTop',0, ...        'Position',[left bottom width height], ...      'String','FIG2EPS');   % Close button   left=0.8;   bottom=0.05;   height=0.045;   width=0.15;   hbt_close = uicontrol(...    'Units','Normalized', ...      'Callback','close(gcf)',...        'ListboxTop',0, ...        'Position',[left bottom width height], ...        'String','Close');   % Info button: call stanard info box   bottom=bottom+1.5*height;   hbt_info = uicontrol(...    'Units','Normalized', ...      'Callback','demo_svm(''info'',gcf)',...        'ListboxTop',0, ...        'Position',[left bottom width height], ...        'String','Info');   % Train SVM button   bottom=bottom+1.5*height;   hbt_train = uicontrol(...      'Units','Normalized', ...      'ListboxTop',0, ...        'Position',[left bottom width height], ...      'String','Train SVM', ...      'Callback','demo_svm(''train'',gcf)');   % Reset button   bottom=bottom+height;    hbt_reset = uicontrol(...      'Units','Normalized', ...      'ListboxTop',0, ...        'Position',[left bottom width height], ...      'String','Reset', ...      'Callback','demo_svm(''reset'',gcf)');   % Creat data   bottom=bottom+1.5*height;    hbt_creat = uicontrol(...      'Units','Normalized', ...      'ListboxTop',0, ...        'Position',[left bottom width height], ...      'String','Create data', ...      'Callback','demo_svm(''creatdata'',gcf)');   % Load data   bottom=bottom+1*height;    hbt_load = uicontrol(...      'Units','Normalized', ...      'ListboxTop',0, ...        'Position',[left bottom width height], ...      'String','Load data', ...      'Callback','demo_svm(''getfile'',gcf)');   % == Popup menus ======================================   bottom=0.95-height;   htx_algo=uicontrol( ...      'Style','text', ...      'Units','normalized', ...      'Position',[left bottom width height], ...      'String','Algorithm');   % popup menu   bottom=bottom-height*0.8;   hpu_algo=uicontrol( ...      'Style','popup', ...      'Units','normalized', ...      'CallBack','demo_svm(''algo_handler'',gcf)',...      'Position',[left bottom width height], ...      'String',ALGOS);   % pop menu - kernel   bottom=bottom-height*1.2;   htx_kernel=uicontrol( ...      'Style','text', ...      'Units','normalized', ...      'Position',[left bottom width height], ...      'String','Kernel');   % popup menu   bottom=bottom-height*.8;   hpu_kernel=uicontrol( ...      'Style','popup', ...      'Units','normalized', ...      'CallBack','demo_svm(''kernel_handler'',gcf)',...      'Position',[left bottom width height], ...      'String',KERNELS);   % == Edit line ========================================   % kernel argument   bottom=bottom-1.2*height;   htx_arg=uicontrol( ...      'Style','text', ...      'Units','normalized', ...      'Position',[left bottom width 0.9*height], ...      'Enable','off',...      'String','Kernel argument');   bottom=bottom-height*.8;   hed_arg = uicontrol(...    'Units','normalized', ...      'ListboxTop',0, ...        'Position',[left bottom width height], ...      'Style','edit',...      'Enable','off',...      'CallBack','demo_svm(''arg_handler'',gcf)',...      'String','1');      % C const   bottom=bottom-1.2*height;   htx_cconst=uicontrol( ...      'Style','text', ...      'Units','normalized', ...      'Position',[left bottom width 0.9*height], ...      'Enable','on',...      'String','C-constant');   bottom=bottom-height*.8;   hed_cconst = uicontrol(...    'Units','normalized', ...      'ListboxTop',0, ...        'Position',[left bottom width height], ...      'Style','edit',...      'Enable','on',...      'CallBack','demo_svm(''cconst_handler'',gcf)',...      'String','100');      % parameters of the algortihm   bottom=bottom-1.2*height;   htx_param=uicontrol( ...      'Style','text', ...      'Units','normalized', ...      'Position',[left bottom width 0.9*height], ...      'Enable','on',...      'String',SMO_PARAM);   bottom=bottom-height*.8;   hed_param = uicontrol(...      'Units','normalized', ...      'ListboxTop',0, ...      'Position',[left bottom width height], ...      'Style','edit',...      'Enable','on',...      'CallBack','demo_svm(''param_handler'',gcf)',...      'String',DEF_SMO_PARAM);      % == Check boxes ==============================================   bottom=bottom-height*1.2;    hxb_background = uicontrol(...    'Style','checkbox', ...    'Units','normalized', ...    'ListboxTop',0, ...    'Position',[left bottom width height], ...    'String','Background');   % ============================================================   data=struct(...      'bt_close',hbt_close,...      'bt_train',hbt_train,...      'bt_reset',hbt_reset,...      'bt_info',hbt_info,...      'bt_load',hbt_load,...      'bt_creat',hbt_creat,...      'pu_algo',hpu_algo,...      'pu_kernel', hpu_kernel,...      'ed_arg', hed_arg,...      'tx_arg', htx_arg,...      'tx_cconst', htx_cconst,...      'ed_cconst', hed_cconst,...      'tx_param', htx_param,...      'ed_param', hed_param,...      'console',hconsole,...      'axes',haxes,...      'xb_background',hxb_background);   set(hfigure,'UserData',data );   % Reset   demo_svm('reset',hfigure);   % Put figure on desktop   set(hfigure,'Visible','on');   drawnow;   %== Trains SVM and displays result ================================case 'train'   data = get( hfigure, 'UserData');      trn = get( data.axes, 'UserData' );      if isempty( trn ),      return;   end      C = str2num(get( data.ed_cconst, 'String' ));   ker_inx = get( data.pu_kernel, 'Value' );   if ker_inx == 1,      ker = 'linear';   elseif ker_inx == 2;      ker = 'poly';   else       ker = 'rbf';   end   arg = str2num(get( data.ed_arg, 'String' ));      [Alpha,bias] = svm_train( data, trn, ker, arg, C );      % focus on the axes   axes( data.axes );      % Clear axes   clrchild( data.axes);      % get options   options.background = get( data.xb_background, 'Value');       % plot decision function   model.sv.X = trn.X;   model.sv.y = trn.I;   ppatterns(model.sv);    inx=find( Alpha ~= 0 );   model.sv.X = trn.X(:,inx);   model.sv.y = trn.I(:,inx);   model.Alpha = Alpha(:,inx)';   model.b = bias;   model.options.ker = ker;   model.options.arg = arg;   psvm( model, options );   %== Handler for Algorithm popup menu ==========================case 'algo_handler'   data=get(hfigure,'UserData');      % which algorithm ?   switch get(data.pu_algo, 'Value' )     

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品美日韩| 91麻豆精品国产91久久久 | 91久久人澡人人添人人爽欧美| 蜜臂av日日欢夜夜爽一区| 午夜精品一区二区三区免费视频 | 国产成人综合在线| 国产一区不卡精品| 国产成人午夜高潮毛片| 91久久久免费一区二区| 欧美性做爰猛烈叫床潮| 色狠狠综合天天综合综合| 欧美偷拍一区二区| 在线播放中文字幕一区| 精品久久久久久久久久久久久久久久久 | 亚洲综合精品久久| 日韩制服丝袜先锋影音| 免费观看在线色综合| 国产米奇在线777精品观看| 国产91精品一区二区| 91丝袜美腿高跟国产极品老师 | 国产精品资源网站| 9l国产精品久久久久麻豆| 色综合久久天天| 欧美午夜精品一区二区蜜桃| 在线电影院国产精品| 久久久久九九视频| 亚洲欧美一区二区三区极速播放 | 99国产精品一区| 欧美精品久久久久久久多人混战| 日韩欧美视频在线| 老汉av免费一区二区三区| 国产一区二区三区久久悠悠色av| 波多野结衣的一区二区三区| 欧美最新大片在线看| 精品久久久久久久久久久久久久久久久| 国产欧美日韩卡一| 午夜精品久久久久影视| 国产精品一区二区你懂的| 在线观看av一区| 欧美韩国日本不卡| 香港成人在线视频| 91在线视频网址| 久久美女高清视频| 亚洲成av人影院在线观看网| 国产在线视频一区二区| 欧美午夜视频网站| 国产欧美日韩三级| 精品影视av免费| 欧美裸体bbwbbwbbw| 国产精品不卡一区| 激情综合网最新| 欧美日韩激情在线| 亚洲欧美一区二区不卡| 国产乱人伦精品一区二区在线观看| 91久久国产综合久久| 国产精品热久久久久夜色精品三区 | 91网站在线播放| 国产欧美一二三区| 国产一区二区三区综合| 欧美日韩国产综合一区二区| 中文字幕第一页久久| 蜜臀久久久99精品久久久久久| 欧美色精品天天在线观看视频| 中文字幕日本不卡| 日韩亚洲欧美成人一区| 中文乱码免费一区二区| 九九视频精品免费| 欧美成人精品1314www| 五月天激情小说综合| 91浏览器在线视频| 中文字幕一区二区三区av| 国产精品一级在线| 久久久久久久久久看片| 蜜臀av一区二区在线免费观看| 欧美日韩成人激情| 偷拍日韩校园综合在线| 91女神在线视频| 中文字幕一区不卡| 91丨porny丨在线| 亚洲综合一区二区三区| 在线视频欧美精品| 日韩一区精品字幕| 日韩欧美第一区| 国产精品一区在线观看乱码| 久久久噜噜噜久久人人看| 国产盗摄一区二区| 亚洲黄色av一区| 欧美亚洲国产一区在线观看网站| 亚洲成人av一区二区三区| 欧美妇女性影城| 国产一区二区三区免费在线观看| 久久精品一区八戒影视| a级高清视频欧美日韩| 一区二区三区在线观看视频| 91成人免费在线视频| 日本中文字幕一区二区视频 | 日本一区二区三区久久久久久久久不 | 亚洲不卡一区二区三区| 91精品国产色综合久久不卡电影 | 成人福利视频网站| 亚洲影院久久精品| 精品免费一区二区三区| 高清不卡一区二区| 亚洲一区二区av在线| 日韩丝袜情趣美女图片| 成人美女视频在线观看18| 亚洲午夜精品久久久久久久久| 欧美精品一级二级三级| 国产电影精品久久禁18| 亚洲一区在线观看视频| 久久嫩草精品久久久精品一| 91久久精品一区二区三区| 精品在线你懂的| 亚洲成国产人片在线观看| 久久综合精品国产一区二区三区 | 在线免费观看一区| 精品在线亚洲视频| 亚洲一区二区中文在线| 久久这里只有精品首页| 欧美色精品在线视频| 国产精品99久久久久久久女警| 亚洲黄色av一区| 国产精品丝袜在线| 日韩欧美国产三级电影视频| 精品999在线播放| 在线观看视频一区二区欧美日韩| 国产精品99久| 蜜臀av性久久久久蜜臀aⅴ流畅 | 99re亚洲国产精品| 久久精品国产亚洲aⅴ| 亚洲三级小视频| 国产亚洲成年网址在线观看| 欧美高清视频www夜色资源网| 97aⅴ精品视频一二三区| 国产老妇另类xxxxx| 日本成人在线电影网| 亚洲成人一区在线| 亚洲综合男人的天堂| 国产欧美视频在线观看| 久久久精品中文字幕麻豆发布| 91精品国产乱码| 日韩亚洲欧美在线| 欧美一区二区视频免费观看| 欧美视频第二页| 在线视频综合导航| 欧美性大战久久久| 91久久精品日日躁夜夜躁欧美| 91蜜桃网址入口| 色婷婷精品久久二区二区蜜臂av| a级高清视频欧美日韩| gogo大胆日本视频一区| 99久久精品情趣| 成人免费视频视频| 成人夜色视频网站在线观看| 高清日韩电视剧大全免费| 成a人片国产精品| 99久久精品国产毛片| voyeur盗摄精品| 91福利精品第一导航| 欧美日韩国产美| 日韩一区二区电影| 久久在线观看免费| 国产精品伦理一区二区| 中文字幕一区二区三区在线观看| 亚洲欧洲综合另类| 日精品一区二区三区| 麻豆一区二区在线| 狠狠色综合日日| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 激情欧美一区二区三区在线观看| 久久电影网电视剧免费观看| 国产又粗又猛又爽又黄91精品| 国产一区二区久久| av一区二区三区黑人| 在线观看www91| 精品国产乱码久久久久久老虎| 国产精品国产三级国产专播品爱网| 亚洲精品亚洲人成人网| 秋霞成人午夜伦在线观看| 福利电影一区二区| 欧美日韩综合色| 久久久亚洲精华液精华液精华液| 国产精品萝li| 裸体一区二区三区| eeuss鲁一区二区三区| 欧美剧在线免费观看网站| 久久久久久久电影| 亚洲妇女屁股眼交7| 国产精品资源在线| 精品视频1区2区| 国产精品色婷婷久久58| 爽爽淫人综合网网站| 国产高清在线观看免费不卡| 欧美视频在线观看一区二区| 日韩一区二区免费高清| 洋洋成人永久网站入口| 成人污视频在线观看| 欧美一区二区观看视频| 亚洲精品国产a久久久久久| 国产在线乱码一区二区三区|