public class LabelConverter
extends Object
Constructor and Description |
---|
LabelConverter() |
Modifier and Type | Method and Description |
---|---|
static double |
decodeLabel(Vector output)
Converts a vector to a label.
|
static scala.Tuple2<Vector,Vector> |
encodeLabeledPoint(LabeledPoint labeledPoint,
int labelCount)
Encodes a label as a vector.
|
public static scala.Tuple2<Vector,Vector> encodeLabeledPoint(LabeledPoint labeledPoint, int labelCount)
labeledPoint
- labeled pointlabelCount
- total number of labelspublic static double decodeLabel(Vector output)
output
- label encoded with a vector