public interface CategoricalEncoder
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
encodeCatValue(java.lang.String level,
double[] rawData)
Encodes a given categorical level into a raw array onto the right position.
|
void |
encodeNA(double[] rawData)
Encode NA (missing level) into raw data.
|
boolean encodeCatValue(java.lang.String level, double[] rawData)
level
- categorical levelrawData
- raw input to score0void encodeNA(double[] rawData)
rawData
- target raw data array