亚洲欧美第一页_禁久久精品乱码_粉嫩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一免费| 亚洲国产成人porn| 亚洲欧洲日韩女同| 欧美tickling网站挠脚心| 在线观看欧美黄色| 成人免费的视频| 国产一区二区三区高清播放| 午夜精品国产更新| 亚洲精品视频观看| 中文字幕免费一区| 久久网这里都是精品| 欧美美女一区二区在线观看| 色综合久久久久综合体| 成人精品在线视频观看| 韩国v欧美v日本v亚洲v| 婷婷国产在线综合| 亚洲成人第一页| 一区二区三区欧美在线观看| 中文字幕在线不卡一区二区三区| 久久先锋资源网| 日韩欧美不卡在线观看视频| 欧美美女黄视频| 欧美日韩国产综合一区二区三区| 在线欧美一区二区| 91麻豆国产精品久久| 不卡电影免费在线播放一区| 岛国精品在线播放| 国产91在线观看| 国产精品一区二区在线观看网站| 国内精品伊人久久久久影院对白| 麻豆精品一区二区三区| 老司机精品视频一区二区三区| 日本不卡中文字幕| 免费美女久久99| 久久er精品视频| 国产又黄又大久久| 国产精华液一区二区三区| 国产精品中文字幕日韩精品| 国产毛片精品视频| 成人午夜又粗又硬又大| jlzzjlzz亚洲女人18| 97se亚洲国产综合自在线| 日本精品裸体写真集在线观看| 91亚洲精品乱码久久久久久蜜桃| 91亚洲精品久久久蜜桃网站| 色婷婷激情综合| 欧美日韩国产在线播放网站| 91精品国产综合久久久蜜臀粉嫩| 日韩视频免费观看高清在线视频| 日韩一级大片在线观看| 日韩精品一区二区三区蜜臀| 久久尤物电影视频在线观看| 亚洲国产精品高清| 亚洲欧美一区二区三区极速播放| 亚洲综合色网站| 麻豆久久一区二区| 国产成人午夜精品影院观看视频| 成人av影院在线| 欧美在线看片a免费观看| 777午夜精品免费视频| 久久亚洲综合色一区二区三区 | 99在线精品观看| 91视频一区二区三区| 欧美日韩一区二区三区在线 | 色综合久久久久久久| 欧美日韩亚洲综合一区二区三区 | 欧美日韩视频一区二区| 精品国产一区二区三区av性色| 国产亚洲一二三区| 亚洲伦理在线免费看| 免费在线观看一区| 成人黄色国产精品网站大全在线免费观看| 99精品在线观看视频| 日韩午夜在线观看| 国产精品久久久久久久久免费桃花 | 欧美人牲a欧美精品| 久久这里只有精品首页| 一区二区三区四区国产精品| 久久激情五月婷婷| proumb性欧美在线观看| 日韩午夜精品视频| 亚洲欧美国产毛片在线| 激情都市一区二区| 欧美午夜一区二区三区 | 国产精品美女一区二区在线观看| 亚洲午夜久久久| 国产精品中文字幕一区二区三区| 欧美午夜精品久久久久久超碰| 久久这里只有精品6| 亚洲不卡在线观看| 成人午夜免费视频| 日韩欧美激情一区| 亚洲一区二区欧美日韩| 国产电影一区在线| 欧美另类变人与禽xxxxx| 中文字幕佐山爱一区二区免费| 久久狠狠亚洲综合| 欧美影院精品一区| 中文字幕亚洲区| 国产精品白丝jk黑袜喷水| 欧美精品乱码久久久久久按摩| 亚洲人成伊人成综合网小说| 激情综合色丁香一区二区| 欧美日韩一区二区在线视频| 国产精品成人免费在线| 国产东北露脸精品视频| 精品久久久久香蕉网| 五月综合激情日本mⅴ| 色综合久久88色综合天天免费| 国产日韩欧美综合在线| 久久成人久久爱| 日韩一二三区不卡| 日日嗨av一区二区三区四区| 欧洲国产伦久久久久久久| 日韩一区在线免费观看| 成人在线视频首页| 国产女主播在线一区二区| 久草在线在线精品观看| 日韩欧美中文一区二区| 青草av.久久免费一区| 欧美日韩一二三区| 亚洲午夜影视影院在线观看| 色综合欧美在线视频区| 亚洲另类春色校园小说| 91浏览器在线视频| 亚洲精品中文在线影院| 色婷婷精品大在线视频| 亚洲黄色性网站| 91福利国产成人精品照片| 亚洲欧美日韩一区| 色婷婷综合久久久久中文一区二区| 国产精品伦一区二区三级视频| 不卡av免费在线观看| 综合色天天鬼久久鬼色| 91免费在线视频观看| 亚洲免费三区一区二区| 在线中文字幕一区| 亚洲国产色一区| 欧美猛男超大videosgay| 日韩专区一卡二卡| 欧美xfplay| 国产99久久久国产精品潘金| 中文字幕不卡三区| 99re这里只有精品首页| 亚洲国产中文字幕| 欧美精品18+| 久久国产夜色精品鲁鲁99| 精品久久人人做人人爰| 国产a久久麻豆| 亚洲日本一区二区三区| 欧美日韩视频一区二区| 久久国产尿小便嘘嘘| 久久久美女毛片| 91麻豆.com| 美女被吸乳得到大胸91| 国产精品午夜春色av| 91福利精品视频| 麻豆精品久久精品色综合| 久久精品水蜜桃av综合天堂| 播五月开心婷婷综合| 亚洲一区二区三区在线播放 | 国产精品二三区| 在线免费不卡电影| 日韩电影在线观看电影| 久久亚洲捆绑美女| 色综合中文字幕国产| 亚洲第一综合色| 26uuu精品一区二区在线观看| www.成人网.com| 日本最新不卡在线| 国产精品三级久久久久三级| 欧美日韩一区二区在线观看视频 | 色94色欧美sute亚洲线路一ni | 亚洲综合色区另类av| 久久亚洲免费视频| 欧美无砖专区一中文字| 黑人精品欧美一区二区蜜桃 | 韩国av一区二区三区| 亚洲精品videosex极品| 欧美精品一区二区久久久| 91影视在线播放| 国内一区二区视频| 亚洲电影一区二区三区| 亚洲国产精品av| 日韩亚洲欧美中文三级| 色婷婷综合激情| 国产精品99久久不卡二区| 亚洲一区二区三区四区在线免费观看| 欧美不卡激情三级在线观看| 不卡的电视剧免费网站有什么| 裸体健美xxxx欧美裸体表演| 亚洲最快最全在线视频| 国产亚洲精久久久久久| 欧美视频一区二| 9人人澡人人爽人人精品|