mixKnn: mixKnn

Description Usage Arguments Value Author(s) See Also Examples

View source: R/interfaces.R

Description

performs k-nearest neighbors over a collection of GMM. It uses jsmc to compute distances. Each elements in data is classified against all the others, and inferred class is compared to the true one (leave-one-out).

Usage

1
mixKnn(data, labels, n = 2, KLparam = 500)

Arguments

data

list of GMM.

labels

vector of numeric labels associated to data.

n

k of the algorithm.

KLparam

number of samples for jsmc.

Value

classification error ratio in [0,1].

Author(s)

Pierrick Bruneau

See Also

mergeClassif constrClassif sampleClassif

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 <- mixKnn(temp2, temp3)

VBmix documentation built on May 20, 2017, 12:34 a.m.

Search within the VBmix package
Search all R packages, documentation and source code