init: Initialize responisibility matrix

Description Usage Arguments Value

View source: R/initialize.R

Description

This function allows you to do variational Bayesian inference for Gaussian mixture. It is based on the MatLab code by Mo Chen (sth4nth@gmail.com).

Usage

1
init(X, K, labels_init, kmeans_init = F, verbose = T)

Arguments

X

NxD data matrix

K

Number of mixture components

labels_init

Initial cluster labels (if empty, use either k-means or randomly assigned labels)

kmeans_init

Boolean flag, which, if TRUE initializes the responsibilities with the output of the k-means algorithm

verbose

Boolean flag which, if TRUE, prints the type of initialization

Value

Resp NxK matrix of responsibilities


acabassi/variational-ogc documentation built on May 23, 2019, 2:45 p.m.