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

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

?? unsudemo.m

?? 四種支持向量機用于函數擬合與模式識別的Matlab示例程序
?? M
?? 第 1 頁 / 共 2 頁
字號:
function []=unsudemo(action,hfigure,varargin)% UNSUDEMO demo on unsupervised (EM) learning algorithm.%% UNSUDEMO demonstrates the unsupervised (Expectation-Maximization) %   learning algorithm on simple examples in 2D space.%%   The aim is to estimate a statistical model described as the%   weighted mixture of Gaussians from unlabeled data %   (point set/patterns). The input data is supposed to be%   identicaly and independently seleted.%%   The found model is described by ellipsoids (shape of %   covariances) and a croses (mean value vectors). The value%   of the optimized log-likelihood function for given model %   is displayed as well.%% Control:%  Features     - select the model with Independent (diagonal covariance %                 matrix) or Dependent (full cov. matrix) features.%  % of classes - prescribe the number of classes (components of the %                 mixture of Gaussians).%               %  Iterations   - number of iterations in one step.%  Random init  - the initial model is randomly generated and/or it is %                 determined by the first n-patterns (mean values)%                 and sample covarinace matrix (covarinaces matrices).%%  FIG2EPS     - export screen to the PostScript file.%  Save model  - save current model to file.%  Load data   - load input point sets from file.%  Create data - invoke program for creating point sets.%  Reset       - set the tested algorithm to the initial state.%  Play        - run the tested algorithm.%  Stop        - stop the running algorithm.%  Step        - perform only one step.%  Info        - invoke the info box.%  Close       - close the program.%% See also UNSUNI, UNSUND.%% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz% Written Vojtech Franc (diploma thesis) 10.11.1999% Modifications% 11-june-2001, V.Franc, comments added.% 27.02.00 V. Franc%  5. 4.00 V. Franc% 23.06.00 V. Hlavac Comments polished. Message when no data loaded.%                    Export of the solution to global variables.% 27-mar-2001, V.Franc, Graph og log-likelihood function added% Used functions: PPOINTS, PNMIX% == Global variables, used to export results from UNSUDEMO ========global UNSU_MI       % K vectors with mean valuesglobal UNSU_SIGMA    % K covariance matricesglobal UNSU_PK       % K apriori probabilities for each distributions.%global UNSU_eI      % Used only by the next iteration, not globalisedglobal UNSU_solution % 1 if alg. finished in stationary point, 0 otherwiseglobal UNSU_t        % Number of iterations the algorithm performed% == Constants =====================================================AXIST_ADD=10;AXISY_ADD=5;BORDER=0.25;           % space betwean window outer and the points
CENTERSIZE=10;         % size of center point
LINE_WIDTH=1;
AXIST_ADD=10;
DATA_IDENT='Finite sets, enumeration';   % file identifier
randinit=1;

if nargin < 1,
   action = 'initialize';
end

% What action is required ?
switch lower(action)

case 'initialize'
   % == Initialize user interface control and figure window ================

   % == Figure   % =============================================================
   left=0.2;   width=0.6;   bottom=0.1;   height=0.8;   hfigure=figure('Name','Unsupervised learning', ...      'Visible','off',...      'NumberTitle','off', ...      'Units','normalized', ...      'Position',[left bottom width height],...      'tag','Unsudemo',...      'doublebuffer','on',...      'backingstore','off');      % == Axes ===============================================================   left=0.1;   width=0.65;   bottom=0.45;   height=0.5;   haxes1=axes(...      'Units','normalized', ...      'NextPlot','add',...      'UserData',[],...      'Position',[left bottom width height]);   xlabel('feature x');   ylabel('feature y');   htitle1=title('No data loaded',...
      'VerticalAlignment','bottom',...
      'Parent',haxes1,...      'HorizontalAlignment','left',...
      'Units','normalized',...
      'Position',[0 1 0]);
   % axes log-Likelihood graph   left=0.1;   width=0.65;   bottom=0.1;   height=0.25;   haxes2=axes(...      'Units','normalized', ...      'NextPlot','add',...      'Position',[left bottom width height]);   ylabel('logL(t)');      htitle2=title('Log-likelihood function',...       'Parent',haxes2,...       'VerticalAlignment','bottom',...       'Units','normalized',...       'HorizontalAlignment','left',...       'Position',[0 1 0]);    htxsteps=xlabel('step number t=0');            % == Comment Window frame ==============================================
%%   bottom=0.05;
%%   height=0.16;
%%   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;
   hbtclose = 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.044;
   width=0.15;
   hbtclose = 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;
   hbtinfo = uicontrol(...
    'Units','Normalized', ...
      'Callback','unsudemo(''info'',gcf)',...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
        'String','Info');

   % Step button: perform one adaptation step
   bottom=bottom+1.5*height;
    hbtstep = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Step', ...
      'Interruptible','off',...
      'Callback','unsudemo(''step'',gcf)');

   % Stop button: stop process of adaptation
   bottom=bottom+height;   hbtstop = uicontrol(...
    'Units','Normalized', ...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...      'String','Stop', ...
      'Callback','set(gcbo,''UserData'',1)',...      'Enable','off');
   % Play button: begin adaptation
   bottom=bottom+height;
   hbtplay = uicontrol(...
    'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Play', ...
      'Callback','unsudemo(''play'',gcf)');

   % Reset button: set up t = 0
   bottom=bottom+height;
    hbtreset = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Reset', ...
      'Callback','unsudemo(''reset'',gcf)');

   % Create data
   bottom=bottom+1.5*height;
    hbtcreat = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Create data', ...
      'Callback','unsudemo(''creatdata'',gcf)');

   % Load data
   bottom=bottom+1*height;
    hbtload = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Load data', ...
      'Callback','unsudemo(''getfile'',gcf)');
   % Save model   bottom=bottom+1.5*height;
    hbtSaveModel = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Save model', ...
      'Callback','unsudemo(''savemodel'',gcf)');
   % Load model%   bottom=bottom+1*height;
%    hbtLoadModel = uicontrol(...
%      'Units','Normalized', ...
%      'ListboxTop',0, ...
%        'Position',[left bottom width height], ...
%      'String','Load model', ...
%      'Callback','unsudemo(''loadmodel'',gcf)');

   % == PopUp Menu =====================================================
   bottom=0.95-height;
   htxfeatures=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width height], ...
      'String','Features');
   % popup menu
   bottom=bottom-height;
   hpufeatures=uicontrol( ...
      'Style','popup', ...
      'Units','normalized', ...
      'Position',[left bottom width height], ...
      'String',['Independent ';'Dependent   ']);

   % == Edit line ==========================================================
   % prior info about number of the classes
   bottom=bottom-1.3*height;
   htxclasses=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'String','# of classes');
   bottom=bottom-height;
   hedclasses = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'Style','edit',...
      'String','2');

   % Iterations
   bottom=bottom-1.3*height;
   htxiter=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'String','Iterations');
   bottom=bottom-height;
   hediter = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'Style','edit',...
      'String','1');

   % == CheckBox =========================================================

   % Should the first algorithm step be random or not ?
   bottom=bottom-height*1.3;
    hxbrandom = uicontrol(...
    'Style','checkbox', ...
       'Units','normalized', ...
    'ListboxTop',0, ...
       'Position',[left bottom width height], ...
    'String','Random init');
   %=====================================================================
   % Store handlers   handlers=struct(...      'ellipse',struct('handler',-1,'mi',[],'sigma',[],'t',0,'Pk',[],...        'solution',0),...      'center',[],...      'graph1',struct('handler',-1,'loglik',[],'axist',0,'time',[]),...      'title1',htitle1,...      'title2',htitle2,...      'btSaveModel',hbtSaveModel,...%      'btLoadModel',hbtLoadModel,...      'btstep',hbtstep,...      'btstop',hbtstop,...       'btclose',hbtclose,...      'btplay',hbtplay,...      'btreset',hbtreset,...      'btinfo',hbtinfo,...      'btload',hbtload,...      'btcreat',hbtcreat,... %%%      'console',hconsole,...      'txsteps',htxsteps,...      'txclasses',htxclasses,...      'txiter',htxiter,...      'txfeatures',htxfeatures,...      'pufeatures',hpufeatures,...      'editer',hediter,...      'xbrandom',hxbrandom,...      'axes1',haxes1,...      'axes2',haxes2,...      'edclasses',hedclasses);   set(hfigure,'UserData',handlers)   % Reset   unsudemo('reset',hfigure);   % Put figure on desktop   set(hfigure,'Visible','on');   drawnow; case 'savemodel'   % == Save model ============================================   h=get(hfigure,'UserData');      if h.ellipse.t == 0,     errordlg('No model has found yet.','No model to save','modal');     return;   end      [name,path]=uiputfile('*.mat','Save model');   if name ~= 0,          MI=h.ellipse.mi;        % mean values     SIGMA=h.ellipse.sigma;  % covariance matrices     Pk=h.ellipse.Pk;        % a-priory probabilities     solution=h.ellipse.solution;     steps=h.ellipse.t;      % number of performed steps          I=[1:size(MI,2)];     N=size(MI,1);     id=dataid(2);     K=ones(1,size(MI,2));          save(strcat(path,name),'id','K','N','I',...         'steps','solution','Pk','SIGMA','MI');        end       case 'loadmodel'   % == Load model ============================================   h=get(hfigure,'UserData');

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美精品国产国产专区 | 精品国产人成亚洲区| 亚洲综合一区二区| 91美女片黄在线观看| 中文字幕在线不卡| 91视频.com| 亚洲一卡二卡三卡四卡五卡| 欧美图片一区二区三区| 男女男精品网站| 国产欧美日韩三级| 91国产免费看| 青椒成人免费视频| 欧美激情一区在线| 在线欧美日韩国产| 青青草精品视频| 久久免费视频一区| 99re亚洲国产精品| 亚洲第四色夜色| 欧美电影影音先锋| 国产精品一级黄| 亚洲日本在线天堂| 制服丝袜成人动漫| 风间由美性色一区二区三区| 夜夜嗨av一区二区三区| 26uuuu精品一区二区| 97se亚洲国产综合自在线观| 图片区日韩欧美亚洲| 久久久久久久久99精品| 色爱区综合激月婷婷| 久久99国内精品| 一区二区三区在线观看网站| 欧美一区二区三区的| 成人美女视频在线看| 日韩av一区二| 亚洲欧洲日韩在线| 中文字幕亚洲区| 欧美精三区欧美精三区| 国产凹凸在线观看一区二区| 亚洲v精品v日韩v欧美v专区| 精品国产91洋老外米糕| 色哟哟一区二区在线观看| 麻豆高清免费国产一区| 亚洲综合在线视频| 久久久久久久久久看片| 欧美人与z0zoxxxx视频| 高清在线不卡av| 麻豆视频观看网址久久| 亚洲女女做受ⅹxx高潮| 久久久久9999亚洲精品| 欧美日韩精品一二三区| av亚洲精华国产精华精| 国产精品自拍一区| 免费日韩伦理电影| 亚洲综合色视频| 国产精品福利一区| 国产夜色精品一区二区av| 日韩精品综合一本久道在线视频| 色婷婷亚洲一区二区三区| 成人午夜视频福利| 国产91丝袜在线播放| 国模大尺度一区二区三区| 午夜精品久久久久久不卡8050| 日韩一区欧美一区| 国产精品美女一区二区| 国产亚洲精品超碰| 久久蜜桃av一区二区天堂| 日韩视频中午一区| 日韩三级在线免费观看| 91麻豆精品91久久久久久清纯 | 91视频观看免费| 国产宾馆实践打屁股91| 国内精品国产成人| 丝袜美腿亚洲一区| 日韩国产高清影视| 日韩电影免费在线| 青青草精品视频| 久久爱www久久做| 国产一区二区在线视频| 精品中文字幕一区二区| 久久99精品国产麻豆婷婷| 国产一区二区在线看| 捆绑调教一区二区三区| 久久精品久久久精品美女| 美女国产一区二区三区| 老司机免费视频一区二区| 国产一区二区三区最好精华液| 精一区二区三区| 粉嫩av一区二区三区在线播放 | 一区二区国产盗摄色噜噜| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 国产欧美日韩另类视频免费观看| 国产欧美日韩卡一| 亚洲黄一区二区三区| 视频在线观看91| 国产在线精品一区二区| 高清国产一区二区三区| 成年人国产精品| 在线精品亚洲一区二区不卡| 欧美一区二区三区免费大片| 久久久久久麻豆| 一区二区视频在线| 日韩精品色哟哟| 国产精品18久久久久久久久| 色综合久久六月婷婷中文字幕| 欧美在线观看视频一区二区| 欧美一级黄色大片| 欧美国产激情二区三区| 亚洲福利视频一区| 国产麻豆视频一区| 色欧美乱欧美15图片| 在线成人免费观看| 国产精品美女一区二区| 日韩中文字幕亚洲一区二区va在线 | 日韩一区二区在线观看视频| 国产欧美精品一区| 亚洲成人在线网站| 国产中文字幕精品| 91国产视频在线观看| 欧美大片一区二区| 亚洲人成小说网站色在线| 免费成人在线影院| 91蜜桃免费观看视频| 欧美成人bangbros| 亚洲综合色网站| 国产高清视频一区| 在线成人av网站| 亚洲视频免费在线观看| 美女任你摸久久| 色播五月激情综合网| 久久亚洲综合色| 亚洲超碰97人人做人人爱| 粉嫩蜜臀av国产精品网站| 欧美一区二区三区日韩视频| 最近中文字幕一区二区三区| 久久se这里有精品| 欧美撒尿777hd撒尿| 国产精品视频在线看| 久久9热精品视频| 欧美美女bb生活片| 亚洲免费观看高清完整| 国产成人av电影在线| 欧美一二三区在线| 亚洲图片欧美色图| 99视频国产精品| 国产亚洲一区二区在线观看| 日韩1区2区3区| 欧美亚洲综合色| 日韩毛片高清在线播放| 成人一区在线看| 久久久亚洲午夜电影| 蜜臀99久久精品久久久久久软件| 欧美视频一区在线| 亚洲色图19p| 99国产精品久| 一区在线观看免费| 成人激情小说网站| 国产欧美日韩精品在线| 国产一区二区电影| www激情久久| 激情深爱一区二区| 欧美成人欧美edvon| 另类小说图片综合网| 欧美一级夜夜爽| 免费在线观看一区| 在线播放欧美女士性生活| 亚洲成在线观看| 91精品国产色综合久久久蜜香臀| 亚洲小说春色综合另类电影| 一本色道久久综合亚洲91| 一区二区三区免费网站| 欧美性xxxxxxxx| 视频一区中文字幕国产| 正在播放亚洲一区| 老司机午夜精品| 久久久综合网站| av午夜一区麻豆| 夜夜爽夜夜爽精品视频| 欧美色视频在线| 青青草97国产精品免费观看无弹窗版| 69久久99精品久久久久婷婷| 蜜芽一区二区三区| 精品久久五月天| 国产激情91久久精品导航| 国产精品乱人伦| 99精品桃花视频在线观看| 亚洲欧美另类在线| 欧美日韩免费电影| 久久精品国产精品亚洲综合| 精品91自产拍在线观看一区| 国产福利91精品一区二区三区| 国产精品久线在线观看| 91免费视频观看| 日韩精品国产精品| 国产调教视频一区| 99久久国产综合精品女不卡| 亚洲福利视频一区二区| 久久日韩精品一区二区五区| 播五月开心婷婷综合| 香蕉加勒比综合久久| 久久久久久亚洲综合影院红桃|