public final class CategoricalDecision extends Decision
NumericDecision
,
Serialized FormConstructor and Description |
---|
CategoricalDecision(int featureNumber,
BitSet activeCategoryEncodings,
boolean defaultDecision) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
BitSet |
getActiveCategoryEncodings() |
boolean |
getDefaultDecision() |
FeatureType |
getType() |
int |
hashCode() |
boolean |
isPositive(Example example) |
String |
toString() |
getFeatureNumber
public CategoricalDecision(int featureNumber, BitSet activeCategoryEncodings, boolean defaultDecision)
public boolean getDefaultDecision()
getDefaultDecision
in class Decision
Decision
cannot be evaluated
on an Example
because the feature value it decides on is missingpublic BitSet getActiveCategoryEncodings()
public boolean isPositive(Example example)
isPositive
in class Decision
example
- example to evaluate Decision
onDecision
is positive on this examplepublic FeatureType getType()
getType
in class Decision
Decision
is over (a FeatureType
)Copyright © 2014–2018. All rights reserved.