Learn R Programming

mdir (version 0.9.0)

generateInitialLabels: Generate initial labels

Description

For V views, generate initial labels allowing for both semi-supervised and unsupervised views.

Usage

generateInitialLabels(labels, fixed, K, alpha, labels_as_intended = FALSE)

Value

An N vector of labels.

Arguments

labels

$N x V$ matrix of initial labels. The actual values passed only matter for semi-supervised views (i.e. the views for which some labels are observed).

fixed

$N x V$ matrix indicating which labels are observed and hence fixed. If the vth column has no 1's then this view is unsupervised.

K

The number of components modelled in each view.

alpha

The concentration parameter (vector).

labels_as_intended

Logical indicating if ``labels`` is the intended output.