Rank: 24 based on 1236 downloads (last 30 days) and 19 files submitted
photo

Mo Chen

E-mail

Personal Profile:
Professional Interests:
Machine Learning, Bayesian Statistics

 

Watch this Author's files

 

Files Posted by Mo View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Oct 2013 Screenshot K-medoids K-medoids clustering algorithm Author: Mo Chen clustering, kmedoids, kmeans 85 12
  • 3.875
3.9 | 8 ratings
25 Sep 2013 Screenshot Viterbi algorithm (Belief propagation) for HMM MAP inference Viterbi algorithm (Belief propagation for directed graphical model) for HMM MAP inference Author: Mo Chen viterbi, hmm, state space, inference 25 0
  • 3.0
3.0 | 1 rating
18 Mar 2013 Log scale density function of basic distributions probability density function of basic distributions in log scale Author: Mo Chen pdf, probability, distribution, statistics, machine learning, prml 22 0
13 Mar 2012 Information Theory Toolbox Functions for Information theory, such as entropy, mutual information, KL divergence, etc Author: Mo Chen information theory, entropy, joint entropy, conditional entropy, relative entropy, kl divergence 143 7
  • 5.0
5.0 | 4 ratings
29 Feb 2012 Random number with specified probability Random number from a discrete distribution Author: Mo Chen discrete multinomial ... 11 3
  • 5.0
5.0 | 1 rating
Comments and Ratings by Mo View all
Updated File Comments Rating
29 Oct 2013 Visual Studio 2013 support for MATLAB Compiler Toolbox Visual Studio 2013 support files for MATLAB Compiler Toolbox (win32) Author: Arnaud Faucher

not working for mex

11 Mar 2013 EM algorithm for Gaussian mixture model EM algorithm for Gaussian mixture. Works on arbitray dimensions with high speed and precision. Author: Mo Chen


Hi, cjain, you have function call mu in path. It is your problem to solve, not mine.

07 Sep 2012 Functional Library Functional programming Author: Matthew Maycock

29 Aug 2012 Kmeans Kmeans implemented using accumarray Author: Wei LI

29 Aug 2012 Kmeans Kmeans implemented using accumarray Author: Wei LI

Carry on

Comments and Ratings on Mo's Files View all
Updated File Comment by Comments Rating
21 Aug 2014 Kernel k-means kernel k-means algorithm Author: Mo Chen Park, Jung Soo

Hi,

I get following error message when pasted 'sample code' in code description? thanks.

>> load data;
K=x'*x; % use linear kernel
label=knkmeans(K,3);
spread(x,label)
Error using ~=
Matrix dimensions must
agree.

Error in knkmeans (line 26)
end

21 Aug 2014 Kernel k-means kernel k-means algorithm Author: Mo Chen Park, Jung Soo

21 Aug 2014 EM algorithm for Gaussian mixture model EM algorithm for Gaussian mixture. Works on arbitray dimensions with high speed and precision. Author: Mo Chen Ananta Wijaya, Putu

may you give flowchart of this program?
because when i read the code, this is not the same as any algorithm that I read.
TQ

19 Aug 2014 Variational Bayesian Inference for Gaussian Mixture Model Variational Bayes method (mean field) for GMM can auto determine the number of components Author: Mo Chen Johannes

Hi,

I solved my problem by removing components that approach zero. Adding this after line 128:

% remove components that are zero
nk = sum(R,1); % 10.51
idx = find(nk<0.01);
% idx = find(nk<4);

if ~isempty(idx)
R(:,idx) = [];
alpha(:,idx) = [];
kappa(:,idx) = [];
m(:,idx) = [];
v(:,idx) = [];
M(:,:,idx) = [];

%Renormalization
tmp = sum(R,2);
R = bsxfun(@times,R,1./tmp);
logR = log(R);

model.alpha = alpha;
model.kappa = kappa;
model.m = m;
model.v = v;
model.M = M; % Whishart: M = inv(W)
end

also added some noise to the matrix in line 176 as suggested below:

V = chol(Xs*Xs'/nk(i) + diag(ones(1,d)*1e-3)); % add some noise to avoid singular matrix

Hope this helps somebody else to. By the way is there a better way to exchange this information? I would have sent you the updated file, but I couldn't find how to do this here.

23 Jul 2014 EM algorithm for Gaussian mixture model EM algorithm for Gaussian mixture. Works on arbitray dimensions with high speed and precision. Author: Mo Chen Zhixin

Contact us