public final class CategoricalFeature extends Object implements Feature
{male,female}
rather than a continuous or discrete numeric value.NumericFeature
,
Serialized FormModifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static CategoricalFeature |
forEncoding(int encoding) |
int |
getEncoding() |
FeatureType |
getFeatureType() |
int |
hashCode() |
String |
toString() |
public static CategoricalFeature forEncoding(int encoding)
encoding
- category value ID to create CategoricalFeature
forCategoricalFeature
representing the category value specified by IDpublic int getEncoding()
CategoricalFeature
public FeatureType getFeatureType()
getFeatureType
in interface Feature
FeatureType.CATEGORICAL
Copyright © 2014–2018. All rights reserved.