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

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

?? demgmm3.m

?? 神經網絡的經典代碼
?? M
字號:
%DEMGMM3 Demonstrate density modelling with a Gaussian mixture model.%%	Description%	 The problem consists of modelling data generated by a mixture of%	three Gaussians in 2 dimensions with a mixture model using diagonal%	covariance matrices.  The priors are 0.3, 0.5 and 0.2; the centres%	are (2, 3.5), (0, 0) and (0,2); the covariances are all axis aligned%	(0.16, 0.64), (0.25, 1) and the identity matrix. The first figure%	contains a scatter plot of the data.%%	A Gaussian mixture model with three components is trained using EM.%	The parameter vector is printed before training and after training.%	The user should press any key to continue at these points.  The%	parameter vector consists of priors (the column), and centres (given%	as (x, y) pairs as the next two columns).  The diagonal entries of%	the covariance matrices are printed separately.%%	The second figure is a 3 dimensional view of the density function,%	while the third shows the axes of the 1-standard deviation circles%	for the three components of the mixture model.%%	See also%	GMM, GMMINIT, GMMEM, GMMPROB, GMMUNPAK%%	Copyright (c) Ian T Nabney (1996-2001)% Generate the datandata = 500;% Fix the seeds for reproducible resultsrandn('state', 42);rand('state', 42);data = randn(ndata, 2);prior = [0.3 0.5 0.2];% Mixture model swaps clusters 1 and 3datap = [0.2 0.5 0.3];datac = [0 2; 0 0; 2 3.5];datacov = [1 1;1 0.25; 0.4*0.4 0.8*0.8];data1 = data(1:prior(1)*ndata,:);data2 = data(prior(1)*ndata+1:(prior(2)+prior(1))*ndata, :);data3 = data((prior(1)+prior(2))*ndata +1:ndata, :);% First cluster has axis aligned variance and centre (2, 3.5)data1(:, 1) = data1(:, 1)*0.4 + 2.0;data1(:, 2) = data1(:, 2)*0.8 + 3.5;% Second cluster has axis aligned variance and centre (0, 0)data2(:,2) = data2(:, 2)*0.5;% Third cluster is at (0,2) with identity matrix for covariancedata3 = data3 + repmat([0 2], prior(3)*ndata, 1);% Put the dataset together againdata = [data1; data2; data3];clcdisp('This demonstration illustrates the use of a Gaussian mixture model')disp('with diagonal covariance matrices to approximate the unconditional')disp('probability density of data in a two-dimensional space.')disp('We begin by generating the data from a mixture of three Gaussians')disp('with axis aligned covariance structure and plotting it.')disp(' ')disp('The first cluster has centre (0, 2).')disp('The second cluster has centre (0, 0).')disp('The third cluster has centre (2, 3.5).')disp(' ')disp('Press any key to continue')pausefh1 = figure;plot(data(:, 1), data(:, 2), 'o')set(gca, 'Box', 'on')% Set up mixture modelncentres = 3;input_dim = 2;mix = gmm(input_dim, ncentres, 'diag');options = foptions;options(14) = 5;	% Just use 5 iterations of k-means in initialisation% Initialise the model parameters from the datamix = gmminit(mix, data, options);% Print out modeldisp('The mixture model has three components and diagonal covariance')disp('matrices.  The model parameters after initialisation using the')disp('k-means algorithm are as follows')disp('    Priors        Centres')disp([mix.priors' mix.centres])disp('Covariance diagonals are')disp(mix.covars)disp('Press any key to continue.')pause% Set up vector of options for EM traineroptions = zeros(1, 18);options(1)  = 1;		% Prints out error values.options(14) = 20;		% Number of iterations.disp('We now train the model using the EM algorithm for 20 iterations.')disp(' ')disp('Press any key to continue.')pause[mix, options, errlog] = gmmem(mix, data, options);% Print out modeldisp(' ')disp('The trained model has priors and centres:')disp('    Priors        Centres')disp([mix.priors' mix.centres])disp('The data generator has priors and centres')disp('    Priors        Centres')disp([datap' datac])disp('Model covariance diagonals are')disp(mix.covars)disp('Data generator covariance diagonals are')disp(datacov)disp('Note the close correspondence between these parameters and those')disp('of the distribution used to generate the data.')disp(' ')disp('Press any key to continue.')pauseclcdisp('We now plot the density given by the mixture model as a surface plot.')disp(' ')disp('Press any key to continue.')pause% Plot the resultx = -4.0:0.2:5.0;y = -4.0:0.2:5.0;[X, Y] = meshgrid(x,y);X = X(:);Y = Y(:);grid = [X Y];Z = gmmprob(mix, grid);Z = reshape(Z, length(x), length(y));c = mesh(x, y, Z);hold ontitle('Surface plot of probability density')hold offdrawnowclcdisp('The final plot shows the centres and widths, given by one standard')disp('deviation, of the three components of the mixture model.  The axes')disp('of the ellipses of constant density are shown.')disp(' ')disp('Press any key to continue.')pause% Try to calculate a sensible position for the second figure, below the firstfig1_pos = get(fh1, 'Position');fig2_pos = fig1_pos;fig2_pos(2) = fig2_pos(2) - fig1_pos(4);fh2 = figure('Position', fig2_pos);h = plot(data(:, 1), data(:, 2), 'bo');hold onaxis('equal');title('Plot of data and covariances')for i = 1:ncentres  v = [1 0];  for j = 1:2    start=mix.centres(i,:)-sqrt(mix.covars(i,:).*v);    endpt=mix.centres(i,:)+sqrt(mix.covars(i,:).*v);    linex = [start(1) endpt(1)];    liney = [start(2) endpt(2)];    line(linex, liney, 'Color', 'k', 'LineWidth', 3)    v = [0 1];  end  % Plot ellipses of one standard deviation  theta = 0:0.02:2*pi;  x = sqrt(mix.covars(i,1))*cos(theta) + mix.centres(i,1);  y = sqrt(mix.covars(i,2))*sin(theta) + mix.centres(i,2);  plot(x, y, 'r-');endhold offdisp('Note how the data cluster positions and widths are captured by')disp('the mixture model.')disp(' ')disp('Press any key to end.')pauseclose(fh1);close(fh2);clear all;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美老女人在线| 亚洲国产婷婷综合在线精品| 亚洲欧美色图小说| 激情综合色播激情啊| 一本久久精品一区二区| 26uuu色噜噜精品一区二区| 亚洲综合色成人| 国产高清不卡一区| 欧美一级黄色片| 亚洲免费观看高清完整版在线观看熊 | 91麻豆免费观看| 欧美成人精精品一区二区频| 亚洲国产综合色| 91丨porny丨户外露出| 国产无人区一区二区三区| 美日韩一区二区三区| 精品视频1区2区| 怡红院av一区二区三区| 成人爱爱电影网址| 国产视频视频一区| 国产永久精品大片wwwapp| 日韩久久久精品| 免费在线欧美视频| 欧美日韩1区2区| 国产一区二三区好的| 91精品国产福利| 香蕉成人伊视频在线观看| 色婷婷精品久久二区二区蜜臂av | 欧洲一区在线电影| 亚洲黄色av一区| 91久久人澡人人添人人爽欧美| 亚洲欧洲精品一区二区三区 | 亚洲自拍偷拍九九九| 色成年激情久久综合| 亚洲精品国产高清久久伦理二区| 一本一本久久a久久精品综合麻豆| 国产精品家庭影院| 91精品国产综合久久国产大片| 亚洲午夜成aⅴ人片| 在线免费观看日本欧美| 五月婷婷综合激情| 日韩欧美一区电影| 国产精品99久久久久久似苏梦涵 | 欧美精品一区二区三区一线天视频| 日韩在线一二三区| 日本视频一区二区| 亚洲国产一区二区三区青草影视| 972aa.com艺术欧美| 亚洲美女少妇撒尿| 欧美日韩国产高清一区| 九九国产精品视频| 中文字幕在线播放不卡一区| 91麻豆蜜桃一区二区三区| 亚洲福中文字幕伊人影院| 欧美一区二区精美| 粉嫩av亚洲一区二区图片| 中文字幕一区二区三区蜜月| 欧美在线|欧美| 麻豆国产精品一区二区三区| 北岛玲一区二区三区四区| 中文字幕高清不卡| 91视频免费看| 日韩av一区二区三区| 日本一区二区三区高清不卡| 91成人网在线| 久久精品国产精品青草| 中文字幕av一区二区三区高| 欧美三级乱人伦电影| 加勒比av一区二区| 亚洲综合无码一区二区| 欧美成人aa大片| 在线观看91视频| 成人黄色综合网站| 国产美女视频一区| 国产精品三级久久久久三级| 欧美少妇bbb| 国产成人亚洲综合a∨猫咪| 亚洲成人av一区二区| 国产欧美一区二区精品性| 欧美日韩国产免费| 91免费观看在线| 国产一区二区三区高清播放| 日韩中文欧美在线| 亚洲欧洲综合另类在线 | 成人在线综合网站| 日韩高清不卡一区| 亚洲女人小视频在线观看| 久久亚洲私人国产精品va媚药| 欧美日韩国产区一| 一本色道**综合亚洲精品蜜桃冫| 国产美女视频91| 美女视频黄 久久| 亚洲一级在线观看| 自拍偷拍欧美精品| 国产精品欧美久久久久无广告| 日韩视频免费观看高清完整版在线观看 | 91免费看片在线观看| 国产精品综合在线视频| 男女男精品网站| 日韩不卡一区二区| 午夜精品久久久久久久久| 一级日本不卡的影视| 亚洲欧美色综合| 亚洲女同一区二区| 亚洲欧美国产毛片在线| 国产精品污www在线观看| 久久免费偷拍视频| 欧美国产激情一区二区三区蜜月| 久久九九99视频| 久久久精品中文字幕麻豆发布| 久久先锋影音av鲁色资源| 精品福利一二区| 国产亚洲一区字幕| 国产精品三级电影| 亚洲欧洲精品一区二区三区不卡| 国产精品久久久久久妇女6080| 国产精品色在线观看| 亚洲欧洲精品一区二区精品久久久 | 国产日韩欧美在线一区| 欧美一区二区福利在线| 777午夜精品免费视频| 欧美精品成人一区二区三区四区| 91福利小视频| 欧美精品电影在线播放| 欧美一区二区三区精品| 精品少妇一区二区| 国产欧美精品日韩区二区麻豆天美| 国产精品天美传媒| 亚洲精品欧美综合四区| 成人精品国产免费网站| 成人免费黄色大片| 一本久道中文字幕精品亚洲嫩| 在线观看成人小视频| 欧美一级电影网站| 久久亚洲一级片| 一区二区三区四区蜜桃| 婷婷中文字幕综合| 激情久久五月天| 国产精品 日产精品 欧美精品| 91污在线观看| 91精品久久久久久久99蜜桃| 精品美女一区二区| 国产精品成人在线观看| 亚洲国产中文字幕在线视频综合| 理论电影国产精品| 99精品一区二区| 日韩一区二区三区观看| 国产精品伦一区| 免费在线观看一区| 99re热这里只有精品视频| 555www色欧美视频| 国产精品美女久久久久aⅴ| 亚洲综合色视频| 高清国产一区二区三区| 欧美日韩高清一区| 国产欧美一二三区| 午夜电影一区二区| www.亚洲精品| 日韩免费看网站| 一区二区三区美女视频| 国产成人免费视频精品含羞草妖精| 日本韩国欧美一区| 久久精品网站免费观看| 日日夜夜免费精品视频| 91麻豆国产在线观看| 精品国产伦一区二区三区观看体验| 一区二区三区在线观看视频| 国产麻豆视频一区二区| 在线不卡免费av| 一区二区三区四区视频精品免费| 国产成人免费高清| 欧美成人video| 天堂av在线一区| 欧美亚洲动漫精品| 亚洲视频小说图片| 成人av电影免费观看| 精品久久一区二区三区| 亚洲成人资源在线| 在线观看一区二区精品视频| 国产精品色婷婷久久58| 国产成人综合在线播放| 日韩欧美电影一区| 日日夜夜精品免费视频| 欧美午夜精品免费| 亚洲一级片在线观看| 91女人视频在线观看| 国产精品久99| 懂色av一区二区夜夜嗨| 国产日韩欧美精品综合| 激情五月婷婷综合| 久久天天做天天爱综合色| 国产主播一区二区三区| 日韩欧美123| 精品一区二区三区免费视频| 欧美乱妇15p| 日韩av电影免费观看高清完整版在线观看| 色婷婷综合在线| 亚洲主播在线播放| 欧美日韩综合在线| 首页国产欧美久久|