constrClassif: constrClassif

Description Usage Arguments Value Author(s) See Also Examples

View source: R/interfaces.R

Description

performs task analogous to mixKnn (i.e. leave-one-out classification), but uses synthetic representatives to infer labels, instead of k-NN. Each representative is obtained by concatenating all GMM (i.e. elements) of a specific label value, and applying vbconstr on this redundant mixture.

Usage

1
constrClassif(data, labels, KLparam = 500, rho = new.env())

Arguments

data

list of GMM.

labels

vector of numeric labels associated to data.

KLparam

number of samples for jsmc.

rho

R environment object. Used to issue R commands within the C routine.

Value

classification error ratio in [0,1].

Author(s)

Pierrick Bruneau

See Also

mixKnn vbconstr

Examples

1
2
3
4
5
6
temp1 <- sample(1:200, 150)
temp2 <- list()
for(i in temp1) temp2 <- appendToList(temp2, imgmods[[i]])
temp3 <- imglabels[temp1]
# de-activated because this process is very long...
#temp4 <- constrClassif(temp2, temp3)

VBmix documentation built on May 30, 2017, 2:34 a.m.

Related to constrClassif in VBmix...