image thumbnail

updated 1 year ago

K-medoids by Mo Chen

K-medoids clustering algorithm (clustering, kmedoids, kmeans)

kmedoids(X,k)

spread(X, label)

image thumbnail

updated 1 year ago

Viterbi algorithm (Belief propagation) for HMM MAP inference by Mo Chen

Viterbi algorithm (Belief propagation for directed graphical model) for HMM MAP inference (viterbi, hmm, state space)

viterbi (x, s, P, E)

demo.m

image thumbnail

updated almost 2 years ago

Log scale density function of basic distributions by Mo Chen

probability density function of basic distributions in log scale (pdf, probability, distribution)

logBesseli(nu,x)

logDirichletPdf(X, a)

logGaussPdf(X, mu, sigma)

image thumbnail

updated almost 3 years ago

Information Theory Toolbox by Mo Chen

Functions for Information theory, such as entropy, mutual information, KL divergence, etc (information theory, entropy, joint entropy)

conditionalEntropy (x, y)

entropy(x)

jointEntropy(x, y)

image thumbnail

updated almost 3 years ago

Random number with specified probability by Mo Chen

Random number from a discrete distribution (discrete multinomial ...)

discreternd(p, n)

image thumbnail

updated almost 3 years ago

EM algorithm for Gaussian mixture model by Mo Chen

EM algorithm for Gaussian mixture. Works on arbitray dimensions with high speed and precision. (em, gmm, mle)

emgm(X, init)

logsumexp(x, dim)

spread(X, label)

image thumbnail

updated almost 3 years ago

Variational Bayesian Inference for Gaussian Mixture Model by Mo Chen

Variational Bayes method (mean field) for GMM can auto determine the number of components (bayesian, variational, gaussian)

logmvgamma(x,d)

logsumexp(x, dim)

spread(X, label)

image thumbnail

updated almost 3 years ago

Spherical K-means by Mo Chen

A kmeans like clustering algorithm to cluster data on a unit sphere. (clustering)

spkmeans(X, init)

image thumbnail

updated almost 3 years ago

kmeans clustering by Mo Chen

Fully vectorized kmeans algorithm. Fast yet simple (10 lines) (kmeans, clustering, vector quantization)

litekmeans(X, k)

spread(X, label)

image thumbnail

updated almost 3 years ago

K-means++: kmeans algorithm with smart seeding by Mo Chen

This is an implementation of the paper k-means++: the advantages of careful seeding. (clustering, kmeans, data analysis)

kmeanspp(X, k)

spread(X, label)

image thumbnail

updated almost 3 years ago

Kernel k-means by Mo Chen

kernel k-means algorithm (kernel, kmeans, clustering)

knkmeans(K,init)

spread(X, label)

image thumbnail

updated almost 3 years ago

Pairwise Distance Matrix by Mo Chen

Compute a matrix of square Euclidean or Mahalanobis distances between points sets(fully optimized!). (euclidean, distance, pairwise)

sqdistance(A, B, M)

image thumbnail

updated 4 years ago

K nearest neighbor search by Mo Chen

Lightning fast k nearest neighbor search, yet very simple. (knn, nearest neighbor, nearest neighbors)

knn(X, Y, k)

build.m

image thumbnail

updated 4 years ago

Normalized Mutual Information by Mo Chen

Fully vectorized implementation normalized mutual information (mutual information, nmi, information theory)

nmi(label, result)

image thumbnail

updated 4 years ago

Mutual Information by Mo Chen

Fully vectorized implementation of mutual information (mutual information, entropy, information theory)

MI(label, result)

image thumbnail

updated 4 years ago

Factor Analysis by Mo Chen

Use EM algorithm to solve factor analysis (factor analysis, em)

fa(X, p)

image thumbnail

updated 4 years ago

EM PCA by Mo Chen

EM algorithm for principal component analysis (em, pca)

empca(X, p)

image thumbnail

updated 4 years ago

Principal Component Analysis by Mo Chen

Efficient PCA (pca, dimensional reduction)

pca(X, p)

image thumbnail

updated 4 years ago

logsumexp by Mo Chen

high accuracy version of log(sum(exp(x))) (numeric, logsumexp)

logsumexp(x, dim)

Contact us