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

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

?? demgmm1.m

?? 有關PPCA的計算程序
?? M
字號:
%DEMGMM1 Demonstrate EM for Gaussian mixtures.%%	Description%	This script demonstrates the use of the EM algorithm to fit a mixture%	of Gaussians to a set of data using maximum likelihood. A colour%	coding scheme is used to illustrate the evaluation of the posterior%	probabilities in the E-step of the EM algorithm.%%	See also%	DEMGMM2, DEMGMM3, DEMGMM4, GMM, GMMEM, GMMPOST%%	Copyright (c) Ian T Nabney (1996-2001)clc;disp('This demonstration illustrates the use of the EM (expectation-')disp('maximization) algorithm for fitting of a mixture of Gaussians to a')disp('data set by maximum likelihood.')disp(' ')disp('The data set consists of 40 data points in a 2-dimensional')disp('space, generated by sampling from a mixture of 2 Gaussian')disp('distributions.')disp(' ')disp('Press any key to see a plot of the data.')pause;% Generate the datarandn('state', 0); rand('state', 0);gmix = gmm(2, 2, 'spherical');ndat1 = 20; ndat2 = 20; ndata = ndat1+ndat2;gmix.centres =  [0.3 0.3; 0.7 0.7]; gmix.covars = [0.01 0.01];x = gmmsamp(gmix, ndata);h = figure;hd = plot(x(:, 1), x(:, 2), '.g', 'markersize', 30);hold on; axis([0 1 0 1]); axis square; set(gca, 'box', 'on');ht = text(0.5, 1.05, 'Data', 'horizontalalignment', 'center');disp(' ');disp('Press any key to continue.')pause; clc;disp('We next create and initialize a mixture model consisting of a mixture')disp('of 2 Gaussians having ''spherical'' covariance matrices, using the')disp('function GMM. The Gaussian components can be displayed on the same')disp('plot as the data by drawing a contour of constant probability density')disp('for each component having radius equal to the corresponding standard')disp('deviation. Component 1 is coloured red and component 2 is coloured')disp('blue.')disp(' ')disp('Note that a particulary poor choice of initial parameters has been')disp('made in order to illustrate more effectively the operation of the')disp('EM algorithm.')disp(' ')disp('Press any key to see the initial configuration of the mixture model.')pause;% Set up mixture modelncentres = 2; input_dim = 2;mix = gmm(input_dim, ncentres, 'spherical');% Initialise the mixture modelmix.centres = [0.2 0.8; 0.8, 0.2];mix.covars = [0.01 0.01];% Plot the initial modelncirc = 30; theta = linspace(0, 2*pi, ncirc);xs = cos(theta); ys = sin(theta);xvals = mix.centres(:, 1)*ones(1,ncirc) + sqrt(mix.covars')*xs;yvals = mix.centres(:, 2)*ones(1,ncirc) + sqrt(mix.covars')*ys;hc(1)=line(xvals(1,:), yvals(1,:), 'color', 'r');hc(2)=line(xvals(2,:), yvals(2,:), 'color', 'b');set(ht, 'string', 'Initial Configuration');figure(h);disp(' ')disp('Press any key to continue'); pause; clc;disp('Now we adapt the parameters of the mixture model iteratively using the')disp('EM algorithm. Each cycle of the EM algorithm consists of an E-step')disp('followed by an M-step.  We start with the E-step, which involves the')disp('evaluation of the posterior probabilities (responsibilities) which the')disp('two components have for each of the data points.')disp(' ')disp('Since we have labelled the two components using the colours red and')disp('blue, a convenient way to indicate the value of a posterior')disp('probability for a given data point is to colour the point using a')disp('scale ranging from pure red (corresponding to a posterior probability')disp('of 1.0 for the red component and 0.0 for the blue component) through')disp('to pure blue.')disp(' ')disp('Press any key to see the result of applying the first E-step.')pause;% Initial E-step.set(ht, 'string', 'E-step');post = gmmpost(mix, x);dcols = [post(:,1), zeros(ndata, 1), post(:,2)];delete(hd); for i = 1 : ndata  hd(i) = plot(x(i, 1), x(i, 2), 'color', dcols(i,:), ...          'marker', '.', 'markersize', 30);endfigure(h);disp(' ');disp('Press any key to continue')pause; clc;disp('Next we perform the corresponding M-step. This involves replacing the')disp('centres of the component Gaussians by the corresponding weighted means')disp('of the data. Thus the centre of the red component is replaced by the')disp('mean of the data set, in which each data point is weighted according to')disp('the amount of red ink (corresponding to the responsibility of')disp('component 1 for explaining that data point). The variances and mixing')disp('proportions of the two components are similarly re-estimated.')disp(' ')disp('Press any key to see the result of applying the first M-step.')pause;% M-step.set(ht, 'string', 'M-step');options = foptions; options(14) = 1; % A single iterationoptions(1) = -1; % Switch off all messages, including warningmix = gmmem(mix, x, options);delete(hc);xvals = mix.centres(:, 1)*ones(1,ncirc) + sqrt(mix.covars')*xs;yvals = mix.centres(:, 2)*ones(1,ncirc) + sqrt(mix.covars')*ys;hc(1)=line(xvals(1,:), yvals(1,:), 'color', 'r');hc(2)=line(xvals(2,:), yvals(2,:), 'color', 'b');figure(h);disp(' ')disp('Press any key to continue')pause; clc;disp('We can continue making alternate E and M steps until the changes in')disp('the log likelihood at each cycle become sufficiently small.')disp(' ')disp('Press any key to see an animation of a further 9 EM cycles.')pause;figure(h);% Loop over EM iterations.numiters = 9;for n = 1 : numiters  set(ht, 'string', 'E-step');  post = gmmpost(mix, x);  dcols = [post(:,1), zeros(ndata, 1), post(:,2)];  delete(hd);   for i = 1 : ndata    hd(i) = plot(x(i, 1), x(i, 2), 'color', dcols(i,:), ...                 'marker', '.', 'markersize', 30);  end  pause(1)  set(ht, 'string', 'M-step');  [mix, options] = gmmem(mix, x, options);  fprintf(1, 'Cycle %4d  Error %11.6f\n', n, options(8));  delete(hc);  xvals = mix.centres(:, 1)*ones(1,ncirc) + sqrt(mix.covars')*xs;  yvals = mix.centres(:, 2)*ones(1,ncirc) + sqrt(mix.covars')*ys;  hc(1)=line(xvals(1,:), yvals(1,:), 'color', 'r');  hc(2)=line(xvals(2,:), yvals(2,:), 'color', 'b');  pause(1)enddisp(' ');disp('Press any key to end.')pause; clc; close(h); clear all

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91久久免费观看| 亚洲成人自拍偷拍| 国产精品一卡二| 欧美国产成人在线| 99re成人精品视频| 婷婷综合五月天| 欧美第一区第二区| 成人免费黄色在线| 亚洲一区二区三区四区五区黄| 欧美日韩日日夜夜| 国产原创一区二区| 亚洲日本va在线观看| 7777精品伊人久久久大香线蕉完整版| 欧美bbbbb| 国产精品美女久久久久久| 91久久奴性调教| 久久精品99久久久| 亚洲人成在线播放网站岛国| 欧美一级黄色大片| voyeur盗摄精品| 日韩电影在线观看网站| 国产午夜精品一区二区| 欧美在线观看视频在线| 韩国三级中文字幕hd久久精品| 国产精品天干天干在线综合| 欧美群妇大交群的观看方式| 国产成人一区在线| 午夜私人影院久久久久| 国产欧美一二三区| 69堂精品视频| 91麻豆文化传媒在线观看| 久久99精品久久久久| 亚洲日本va午夜在线影院| 精品久久五月天| 欧洲激情一区二区| 成人免费福利片| 蜜臀精品一区二区三区在线观看| 中文字幕在线不卡国产视频| 日韩欧美在线影院| 在线一区二区三区| 国产成人自拍在线| 美女一区二区三区| 亚洲444eee在线观看| 国产精品嫩草影院com| 精品国产1区二区| 欧美日韩精品一区视频| av在线综合网| 国产精品综合一区二区三区| 日韩精品成人一区二区在线| 亚洲欧美视频在线观看| 亚洲国产高清不卡| 久久免费午夜影院| 精品久久国产字幕高潮| 91麻豆精品国产自产在线观看一区| 一本久久a久久免费精品不卡| 国产精品1区二区.| 国产剧情av麻豆香蕉精品| 老汉av免费一区二区三区| 香蕉影视欧美成人| 亚洲一区二区三区四区五区黄| **欧美大码日韩| 中文字幕亚洲综合久久菠萝蜜| 久久九九99视频| 久久精品欧美一区二区三区不卡| 日韩欧美国产不卡| 日韩精品专区在线| 欧美大片拔萝卜| 久久婷婷成人综合色| 久久综合五月天婷婷伊人| 精品欧美乱码久久久久久| 日韩精品在线网站| 精品国产免费人成在线观看| 26uuu久久综合| 国产欧美在线观看一区| 亚洲国产成人在线| 椎名由奈av一区二区三区| 亚洲日本一区二区| 亚洲综合成人在线| 视频一区欧美日韩| 捆绑变态av一区二区三区| 九一九一国产精品| 国产高清亚洲一区| 不卡av电影在线播放| av影院午夜一区| 在线看国产日韩| 欧美日本免费一区二区三区| 日韩一区二区三区电影| 精品国精品国产| 国产亚洲成年网址在线观看| 亚洲欧洲国产日韩| 亚洲不卡av一区二区三区| 欧美96一区二区免费视频| 狠狠狠色丁香婷婷综合激情| 大陆成人av片| 欧美午夜精品久久久久久孕妇 | 久久成人av少妇免费| 国产在线不卡一卡二卡三卡四卡| 懂色一区二区三区免费观看 | 亚洲一区在线观看视频| 天天色综合成人网| 国产精品一区二区男女羞羞无遮挡| 国产69精品一区二区亚洲孕妇| 99精品黄色片免费大全| 欧美久久一区二区| 久久久久久日产精品| 亚洲欧美一区二区三区孕妇| 日本一区中文字幕| 丰满亚洲少妇av| 日本韩国欧美国产| 久久综合九色综合欧美98| 亚洲女性喷水在线观看一区| 麻豆视频一区二区| 972aa.com艺术欧美| 日韩女同互慰一区二区| 1024国产精品| 精品一区二区在线免费观看| 一本色道亚洲精品aⅴ| 欧美v国产在线一区二区三区| ...xxx性欧美| 国产一区二区三区久久久| 欧美日韩精品免费观看视频| 欧美韩日一区二区三区| 男女男精品视频网| 日本福利一区二区| 久久久国产一区二区三区四区小说 | 最新成人av在线| 毛片av一区二区三区| 在线观看av不卡| 日本一区二区三区久久久久久久久不| 香蕉成人啪国产精品视频综合网 | 免费成人你懂的| 91黄色免费网站| 中日韩免费视频中文字幕| 日本va欧美va欧美va精品| 91看片淫黄大片一级在线观看| 久久综合久久综合九色| 日韩精品视频网站| 91视频在线看| 国产精品婷婷午夜在线观看| 经典三级在线一区| 欧美一区二区三区成人| 亚洲与欧洲av电影| 97精品超碰一区二区三区| 国产三级三级三级精品8ⅰ区| 秋霞影院一区二区| 欧美美女bb生活片| 亚洲五月六月丁香激情| 在线中文字幕一区| 亚洲精选在线视频| 91日韩在线专区| 日韩一区在线免费观看| 成人小视频免费观看| 欧美国产日韩在线观看| 国产成人精品网址| 国产日韩精品一区| 国产电影精品久久禁18| 国产亚洲制服色| 国产精品77777竹菊影视小说| 精品成人a区在线观看| 久色婷婷小香蕉久久| 欧美一区二区成人| 日本不卡中文字幕| 欧美xingq一区二区| 极品尤物av久久免费看| 久久久久久夜精品精品免费| 国产一区 二区| 国产欧美日本一区视频| 白白色 亚洲乱淫| 亚洲色图在线视频| 欧美性视频一区二区三区| 午夜不卡在线视频| 欧美大尺度电影在线| 精品一区二区三区在线播放视频| 精品不卡在线视频| 国产成人自拍在线| 亚洲视频1区2区| 欧美日韩aaaaa| 久久精品国产精品青草| 国产日韩一级二级三级| 成人av动漫在线| 亚洲一区二区精品久久av| 欧美浪妇xxxx高跟鞋交| 韩国毛片一区二区三区| 国产精品少妇自拍| 欧美专区日韩专区| 麻豆高清免费国产一区| 中文字幕乱码久久午夜不卡| 色94色欧美sute亚洲线路一久| 香港成人在线视频| 久久精品亚洲乱码伦伦中文| 成人av网在线| 天天免费综合色| 久久精品欧美日韩精品| 91久久精品一区二区三| 蜜桃免费网站一区二区三区| 国产农村妇女毛片精品久久麻豆| 91福利社在线观看| 久久99久久久久久久久久久| 亚洲欧美在线另类| 日韩一级视频免费观看在线|