Learn R Programming

Buddle (version 2.0.1)

OneHot2Label: Obtaining Labels

Description

Convert a one-hot encoding matrix to a vector of labels.

Usage

OneHot2Label(OHE, Label)

Arguments

OHE

an r-by-n one-hot encoding matrix.

Label

an r-by-1 vector of values or levels which a label can take.

Value

An n-by-1 vector of labels.

See Also

CheckNonNumeric(), GetPrecision(), FetchBuddle(), MakeConfusionMatrix(), Split2TrainTest(), TrainBuddle()