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

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

?? demgmm3.m

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产综合在线一区二区三区 | 麻豆中文一区二区| 麻豆视频一区二区| www.综合网.com| 欧美一区二区三区免费大片| 国产精品丝袜一区| 日本 国产 欧美色综合| 91一区在线观看| 精品欧美乱码久久久久久1区2区| 成人欧美一区二区三区小说| 全国精品久久少妇| 日本大香伊一区二区三区| 日韩精品一区二区三区在线| 亚洲资源在线观看| 国产成a人亚洲| 日韩欧美在线综合网| 亚洲欧美色图小说| 成人网在线免费视频| 亚洲精品一区二区三区蜜桃下载| 亚洲国产欧美在线| av一区二区三区黑人| 久久午夜国产精品| 免费成人美女在线观看| 欧美午夜精品理论片a级按摩| 中文久久乱码一区二区| 国产在线播精品第三| 日韩女优av电影| 日本欧美一区二区| 欧美性极品少妇| 亚洲欧美色综合| 色综合久久久久综合体桃花网| 国产色综合一区| 国产美女娇喘av呻吟久久| 91精品福利在线一区二区三区| 亚洲午夜久久久久中文字幕久| a亚洲天堂av| 中文字幕一区av| 91色视频在线| 亚洲精品国产精品乱码不99 | 日韩电影在线免费观看| 欧美在线不卡一区| 亚洲大片精品永久免费| 91福利国产成人精品照片| 亚洲天堂2016| 在线观看日韩高清av| 一区二区三区四区激情| 在线看不卡av| 亚洲第一二三四区| 91精品国产91热久久久做人人| 老汉av免费一区二区三区| 欧美岛国在线观看| 国产精品资源站在线| 国产精品网曝门| 色吧成人激情小说| 亚洲成av人片在线观看无码| 555www色欧美视频| 精品一区二区精品| 国产精品久久综合| 在线亚洲欧美专区二区| 视频一区视频二区中文字幕| 日韩欧美国产午夜精品| 国产成人午夜精品5599 | 精品国产一区二区三区久久久蜜月 | 天堂资源在线中文精品| 日韩一区二区三区观看| 福利一区在线观看| 亚洲综合视频网| 欧美电视剧在线看免费| 成人高清视频在线观看| 图片区小说区区亚洲影院| 欧美不卡在线视频| 91麻豆视频网站| 蜜臀av亚洲一区中文字幕| 欧美激情综合五月色丁香小说| 91丨porny丨蝌蚪视频| 日本不卡不码高清免费观看| 国产精品国产三级国产aⅴ原创 | 亚洲电影一区二区| 精品国产露脸精彩对白| 99精品久久免费看蜜臀剧情介绍| 亚洲mv在线观看| 国产女人18水真多18精品一级做| 欧洲另类一二三四区| 国内成人免费视频| 夜夜精品浪潮av一区二区三区| 欧美成人一区二区三区片免费| 成人中文字幕合集| 日韩电影一区二区三区| 中文字幕一区免费在线观看| 日韩午夜在线观看| thepron国产精品| 久久机这里只有精品| 亚洲六月丁香色婷婷综合久久| 精品日产卡一卡二卡麻豆| 在线观看亚洲成人| 成人黄色在线网站| 韩国视频一区二区| 性久久久久久久久久久久| 中文字幕精品在线不卡| 精品乱人伦一区二区三区| 欧美色图激情小说| av在线不卡免费看| 岛国精品一区二区| 国产在线视频精品一区| 免费观看一级特黄欧美大片| 亚洲综合丝袜美腿| 最近日韩中文字幕| 国产精品卡一卡二| 国产精品色呦呦| 久久综合狠狠综合| 日韩三级在线观看| 欧美日本国产视频| 欧美三级韩国三级日本三斤| 91视频观看免费| 一本一道久久a久久精品| 欧美日韩久久久| 色噜噜狠狠成人网p站| youjizz国产精品| av网站免费线看精品| 国产成人小视频| 成人免费av资源| 成人网在线播放| 91在线丨porny丨国产| av中文字幕在线不卡| av网站免费线看精品| 91网站在线观看视频| 91免费视频大全| 色婷婷久久久久swag精品| 色综合天天做天天爱| 色欲综合视频天天天| 色综合久久综合中文综合网| 在线观看中文字幕不卡| 欧美日韩高清不卡| 日韩一区二区精品| 精品蜜桃在线看| 国产精品入口麻豆九色| 日韩毛片精品高清免费| 亚洲制服丝袜av| 五月婷婷激情综合| 久久99国产精品麻豆| 国产成人av影院| 色综合天天狠狠| 欧美日韩国产片| 精品国产一区二区精华| 国产欧美一区二区精品性色超碰 | 国产成人av一区二区三区在线| 国产成人免费在线| 91蝌蚪porny| 91精品欧美福利在线观看| 欧美成人aa大片| 中文字幕在线不卡国产视频| 亚洲综合无码一区二区| 精品在线播放免费| 99久久99久久精品免费看蜜桃| 欧美视频中文字幕| 精品久久一二三区| 亚洲色图欧美在线| 美日韩一区二区| av成人老司机| 日韩一级免费观看| 欧美激情中文字幕| 午夜精品一区二区三区电影天堂| 国内一区二区在线| 色婷婷久久久亚洲一区二区三区| 日韩欧美色综合| 亚洲精品日韩一| 国产一本一道久久香蕉| 欧美日韩在线不卡| 国产精品久久久久7777按摩| 亚洲妇熟xx妇色黄| 成人动漫av在线| 精品久久国产老人久久综合| 亚洲自拍偷拍综合| 成人激情黄色小说| 精品久久久久久久人人人人传媒 | 国产精品青草久久| 久久精品免费看| 欧美视频中文字幕| 成人欧美一区二区三区在线播放| 激情成人综合网| 欧美精品日日鲁夜夜添| 亚洲嫩草精品久久| 成人免费电影视频| 久久精品一区二区| 久久se精品一区精品二区| 欧美日韩另类国产亚洲欧美一级| 综合久久久久久| 成人91在线观看| 中文字幕成人网| 国产乱码精品一区二区三区五月婷| 欧美剧情片在线观看| 亚洲久草在线视频| 天堂午夜影视日韩欧美一区二区| 蜜臀久久99精品久久久画质超高清| 成人妖精视频yjsp地址| 欧美日韩国产片| 日韩av不卡在线观看| 欧美性三三影院| 亚洲男人的天堂在线观看| 99re在线视频这里只有精品|