powered by
Applies analyzeClassification row-wise to a matrix.
analyzeClassification
encodeClassLabels(x, method = "WTA", l = 0, h = 0)
a numeric vector, each number represents a different class. A zero means that no class was assigned to the pattern.
inputs
see analyzeClassification
idem
data(iris) labels <- decodeClassLabels(iris[,5]) encodeClassLabels(labels)
Run the code above in your browser using DataLab