亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
日韩**一区毛片| 欧美韩日一区二区三区| 亚洲第一激情av| 欧美日韩免费视频| 欧美亚洲一区三区| 91精品久久久久久蜜臀| 婷婷久久综合九色综合绿巨人| 欧美日韩不卡在线| 另类小说一区二区三区| 国产三级欧美三级日产三级99| 成人精品小蝌蚪| 亚洲成av人片在线观看无码| 精品国产1区二区| 91亚洲资源网| 日韩精品色哟哟| 国产色婷婷亚洲99精品小说| av在线这里只有精品| 五月婷婷激情综合网| 精品理论电影在线观看 | 精品国免费一区二区三区| 精品一区二区久久| 国产精品国产三级国产| 欧美亚洲丝袜传媒另类| 美女视频网站黄色亚洲| 国产精品国产三级国产专播品爱网| 在线视频综合导航| 国产在线精品免费av| 亚洲人成网站影音先锋播放| 日韩一级欧美一级| 色伊人久久综合中文字幕| 美女视频免费一区| 亚洲欧美区自拍先锋| 制服丝袜一区二区三区| 成人一区二区三区在线观看| 亚洲精品中文在线影院| 精品久久国产字幕高潮| 精品国产乱码久久久久久蜜臀 | 国产精品18久久久久久vr| 亚洲视频一区在线| 精品国产一区二区国模嫣然| 色噜噜久久综合| 国产精品一二三四五| 亚洲成人综合网站| 亚洲视频 欧洲视频| 久久综合狠狠综合| 在线播放国产精品二区一二区四区| 国产成人免费视频精品含羞草妖精| 亚洲第一精品在线| 亚洲视频在线一区观看| 久久久高清一区二区三区| 91精品国产综合久久久久久久| 色综合一区二区| 国产91高潮流白浆在线麻豆| 蜜臀av一区二区| 亚洲综合色婷婷| 亚洲欧美偷拍卡通变态| 久久精品免费在线观看| 日韩三级视频在线看| 欧美群妇大交群的观看方式| 一本久道久久综合中文字幕 | 久久精品久久综合| 亚洲成人自拍偷拍| 亚洲激情欧美激情| 亚洲精品伦理在线| 亚洲人成在线观看一区二区| 中文av一区二区| 国产丝袜欧美中文另类| 国产清纯白嫩初高生在线观看91 | 美女精品自拍一二三四| 午夜精品久久久久久久| 国产一区二区美女诱惑| 午夜激情久久久| 亚洲制服丝袜av| 一区二区三区成人| 亚洲欧美日韩在线不卡| 国产精品久久久久一区二区三区| 国产欧美精品一区| 亚洲国产精品成人综合色在线婷婷| 久久综合九色综合久久久精品综合| 欧美一区二区三区在线视频| 91精品久久久久久久91蜜桃| 日韩网站在线看片你懂的| 日韩欧美国产综合在线一区二区三区| 337p亚洲精品色噜噜| 欧美一区二区日韩一区二区| 91精品在线观看入口| 日韩一级欧美一级| 精品国产百合女同互慰| 26uuu国产日韩综合| 久久九九99视频| 中文字幕一区二区视频| 亚洲欧美激情小说另类| 亚洲一区在线免费观看| 亚洲成人免费在线| 蜜桃精品在线观看| 国产在线不卡一区| 成人白浆超碰人人人人| 在线精品视频小说1| 欧美三级欧美一级| 日韩视频永久免费| 久久婷婷成人综合色| 国产欧美va欧美不卡在线| 专区另类欧美日韩| 亚洲一区成人在线| 青青草国产精品97视觉盛宴| 韩国av一区二区三区在线观看| 国产91精品精华液一区二区三区| 久久久高清一区二区三区| 欧美极品xxx| 亚洲国产日韩a在线播放| 天天免费综合色| 国产真实乱子伦精品视频| 成人精品国产福利| 欧美日韩亚洲综合一区二区三区| 在线成人午夜影院| 久久夜色精品国产噜噜av| 亚洲欧洲日本在线| 日韩高清不卡一区| 国产白丝网站精品污在线入口| 色综合一区二区三区| 日韩一区二区在线观看视频 | 欧美日韩国产片| 国产亚洲午夜高清国产拍精品| 成人欧美一区二区三区白人| 日韩av不卡在线观看| 99re热这里只有精品视频| 欧美日韩精品一区二区天天拍小说| 欧美精品一区二区精品网| 亚洲激情六月丁香| 久久99精品久久久久久动态图 | xf在线a精品一区二区视频网站| 国产欧美一区二区在线观看| 亚洲妇熟xx妇色黄| 激情亚洲综合在线| 欧美视频中文字幕| 中文av一区二区| 蜜臀精品一区二区三区在线观看 | 色婷婷国产精品| 国产日韩欧美综合一区| 日本亚洲免费观看| 一本色道**综合亚洲精品蜜桃冫 | 91蜜桃网址入口| www国产成人| 麻豆久久久久久| 欧美在线观看视频一区二区 | 日韩欧美高清在线| 一区二区三区欧美亚洲| 国产不卡视频在线播放| 欧美v亚洲v综合ⅴ国产v| 樱桃国产成人精品视频| 成人sese在线| 久久毛片高清国产| 美女一区二区视频| 欧美一区二区啪啪| 亚洲午夜久久久久中文字幕久| 99久久精品国产毛片| 国产欧美精品一区二区色综合| 九九视频精品免费| 91精品在线免费观看| 天天操天天综合网| 欧美三日本三级三级在线播放| 亚洲男同性恋视频| 99精品视频中文字幕| 中文字幕在线不卡视频| 成人丝袜视频网| 国产精品欧美精品| 成人综合在线观看| 国产精品久久99| 成人精品一区二区三区四区 | xnxx国产精品| 国产在线一区二区综合免费视频| 日韩欧美www| 蜜桃视频在线观看一区二区| 欧美日韩国产片| 婷婷成人综合网| 4hu四虎永久在线影院成人| 亚洲自拍偷拍av| 91精品办公室少妇高潮对白| 一级特黄大欧美久久久| 色综合天天狠狠| 亚洲成人一区在线| 日韩一区二区在线观看| 久久99精品国产麻豆婷婷| 26uuu国产一区二区三区| 国产高清无密码一区二区三区| 国产欧美视频一区二区| 东方aⅴ免费观看久久av| 日本在线不卡视频| 在线综合亚洲欧美在线视频 | 日本不卡视频在线| 欧美电影免费观看完整版| 国产美女视频一区| 日韩一区中文字幕| 欧美在线观看视频在线| 日韩黄色免费网站| 久久久久久麻豆| 91福利国产精品| 蜜桃视频免费观看一区| 国产精品乱码一区二区三区软件 | 奇米一区二区三区|