Machine Learning, Clustering, Expectation Maximization, Gaussian Mixture Model, Image Clustering.
covs (numpy array) : numpy array of covariance metrix of size (n_clusters, dimension, dimension) def get_log_likelihood( data, weights, means, covs): n_clusters = len(means) dimension = len(data[0]) sum_ln_exp = 0 for d in data: Z = np.zeros(n_clusters) for k in range(n_clusters): # compute