Learn R Programming

VBmix (version 0.3.2)

mergeClassif:

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 vbcomp on this redundant mixture.

Usage

mergeClassif(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].

See Also

mixKnn vbcomp

Examples

Run this code
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 <- mergeClassif(temp2, temp3)

Run the code above in your browser using DataLab