encodeClassLabels | R Documentation |
Applies analyzeClassification
row-wise to a matrix.
encodeClassLabels(x, method = "WTA", l = 0, h = 0)
x |
inputs |
method |
see |
l |
idem |
h |
idem |
a numeric vector, each number represents a different class. A zero means that no class was assigned to the pattern.
analyzeClassification
data(iris)
labels <- decodeClassLabels(iris[,5])
encodeClassLabels(labels)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.