encodeClassLabels function

Encode a matrix of (decoded) class labels

Encode a matrix of (decoded) class labels

Applies analyzeClassification row-wise to a matrix.

encodeClassLabels(x, method = "WTA", l = 0, h = 0)

Arguments

  • x: inputs
  • method: see analyzeClassification
  • l: idem
  • h: idem

Returns

a numeric vector, each number represents a different class. A zero means that no class was assigned to the pattern.

Examples

data(iris) labels <- decodeClassLabels(iris[,5]) encodeClassLabels(labels)

See Also

analyzeClassification

  • Maintainer: Christoph Bergmeir
  • License: LGPL (>= 2) | file LICENSE
  • Last published: 2023-11-30