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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? demgmm1.m

?? 一個matlab的工具包,里面包括一些分類器 例如 KNN KMEAN SVM NETLAB 等等有很多.
?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美综合在线视频| 福利91精品一区二区三区| 91高清在线观看| 一区二区视频在线看| 99久久国产综合色|国产精品| 国产精品无码永久免费888| 国产成人高清在线| 国产精品福利一区二区三区| jlzzjlzz亚洲女人18| 亚洲欧美激情在线| 欧美日韩一区视频| 奇米精品一区二区三区四区 | 96av麻豆蜜桃一区二区| 亚洲男人电影天堂| 欧美日韩精品专区| 国产一区二区三区免费观看| 欧美激情在线一区二区| 色婷婷综合在线| 日韩国产欧美一区二区三区| 日韩免费看的电影| 国产成人综合网| 亚洲精品欧美综合四区| 日韩一区二区三区电影在线观看 | 精品国产乱码久久久久久久| 国产精品自拍av| 亚洲色图制服丝袜| 欧美一区午夜视频在线观看| 国产成人日日夜夜| 亚洲综合免费观看高清完整版在线 | 亚洲欧洲日韩在线| 欧美日韩国产一二三| 国产在线视频不卡二| 国产精品对白交换视频 | 免费在线观看不卡| 国产精品久线在线观看| 欧美日韩一级二级三级| 国内外成人在线| 一区二区三区欧美亚洲| 欧美变态tickle挠乳网站| 99久久精品国产导航| 久久精品噜噜噜成人av农村| 中文字幕一区二区三区不卡| 欧美精品久久天天躁| 成人av网站免费观看| 欧美96一区二区免费视频| 国产精品免费久久| 欧美一级精品在线| 91同城在线观看| 国产大陆亚洲精品国产| 婷婷久久综合九色综合伊人色| 欧美国产欧美综合| 欧美电视剧在线看免费| 欧美午夜精品一区二区三区| 国产成人在线观看免费网站| 免费一级片91| 亚洲成av人片一区二区梦乃| 国产精品国模大尺度视频| 欧美一区二区三区小说| 91老师国产黑色丝袜在线| 国产一区亚洲一区| 轻轻草成人在线| 亚洲va国产天堂va久久en| 国产精品福利一区二区| 国产午夜久久久久| 日韩欧美一级片| 欧美二区乱c少妇| 欧美在线999| 91免费版pro下载短视频| 国产精品1区2区3区| 久久精品999| 秋霞国产午夜精品免费视频| 亚洲福利一区二区| 亚洲精品欧美综合四区| 亚洲人123区| 18成人在线观看| 亚洲三级免费观看| 亚洲图片另类小说| 亚洲天堂免费在线观看视频| 国产精品你懂的| 国产精品三级久久久久三级| 国产视频一区在线播放| 久久久久久久电影| 国产亚洲制服色| 日本一区二区三区久久久久久久久不| 精品国内片67194| 2019国产精品| 国产日韩欧美a| 中文字幕亚洲欧美在线不卡| 中文字幕一区二区三区不卡| 亚洲视频一二三区| 亚洲自拍偷拍九九九| 亚洲一二三区视频在线观看| 天天av天天翘天天综合网 | 精品国产区一区| 久久综合色婷婷| 国产欧美一区二区三区网站| 欧美国产日本韩| 亚洲精品成a人| 午夜精品福利视频网站| 美国十次了思思久久精品导航| 麻豆一区二区99久久久久| 国产一区二区三区观看| 成人av电影在线网| 欧美在线不卡一区| 日韩欧美国产综合在线一区二区三区| 久久毛片高清国产| 亚洲黄色尤物视频| 久久精品理论片| fc2成人免费人成在线观看播放| 在线一区二区观看| 日韩一区二区三区四区| 国产精品午夜在线| 午夜电影一区二区| 国产一区二区三区| 色综合久久久久网| 欧美xingq一区二区| 中文字幕一区二区三区不卡| 日韩电影在线免费看| 国产成人综合精品三级| 91成人网在线| 久久色在线观看| 亚洲一区二区三区四区不卡| 成人教育av在线| 欧美日韩一区二区三区四区五区| 精品国精品国产尤物美女| 综合自拍亚洲综合图不卡区| 日韩不卡一区二区| 丁香激情综合国产| 在线不卡免费欧美| 国产精品久久久久aaaa樱花 | 精品久久国产字幕高潮| 国产精品久久久久久久久搜平片| 亚洲123区在线观看| 丁香亚洲综合激情啪啪综合| 欧美日韩免费视频| 亚洲欧洲日产国产综合网| 青娱乐精品视频在线| 91麻豆精品在线观看| 久久理论电影网| 青青国产91久久久久久 | 欧美优质美女网站| 国产欧美精品一区二区色综合| 日日摸夜夜添夜夜添国产精品 | 欧美在线你懂的| 国产精品久久免费看| 久草精品在线观看| 欧美片在线播放| 一区二区三区.www| av在线一区二区| 国产目拍亚洲精品99久久精品| 热久久一区二区| 欧美日韩视频在线一区二区| 中文字幕一区二区三区精华液| 韩国av一区二区三区| 日韩一级大片在线| 香蕉成人伊视频在线观看| 一本一道波多野结衣一区二区| 国产欧美日韩麻豆91| 国产永久精品大片wwwapp | 国产亚洲1区2区3区| 激情文学综合插| 精品欧美一区二区三区精品久久| 亚洲国产视频在线| 91福利国产成人精品照片| 亚洲狼人国产精品| 91丨九色丨蝌蚪丨老版| |精品福利一区二区三区| 成人黄色免费短视频| 国产欧美一区二区三区鸳鸯浴| 国产真实乱偷精品视频免| 日韩欧美一卡二卡| 九色综合狠狠综合久久| 欧美大片在线观看一区| 久久国产精品72免费观看| 欧美一区午夜视频在线观看| 日本美女一区二区三区视频| 欧美高清一级片在线| 日精品一区二区三区| 欧美日韩精品综合在线| 日本女优在线视频一区二区| 欧美成人一区二区三区| 韩国成人精品a∨在线观看| 久久精品一区二区三区不卡 | 亚洲精品伦理在线| 欧美性欧美巨大黑白大战| 亚洲国产成人av网| 午夜欧美大尺度福利影院在线看| 色噜噜久久综合| 午夜激情一区二区三区| 欧美va亚洲va国产综合| 国产精品一区2区| 最新久久zyz资源站| 欧美日韩中文精品| 极品少妇一区二区三区精品视频| 久久精品亚洲国产奇米99| 色婷婷av一区二区三区大白胸| 日韩成人伦理电影在线观看| 精品国产乱码久久久久久浪潮 | 中文字幕一区二区三区精华液| 色猫猫国产区一区二在线视频|