public interface AttributeClassObserver extends OptionHandler
| Modifier and Type | Method and Description |
|---|---|
AttributeSplitSuggestion |
getBestEvaluatedSplitSuggestion(SplitCriterion criterion,
double[] preSplitDist,
int attIndex,
boolean binaryOnly)
Gets the best split suggestion given a criterion and a class distribution
|
void |
observeAttributeClass(double attVal,
int classVal,
double weight)
Updates statistics of this observer given an attribute value, a class
and the weight of the instance observed
|
void |
observeAttributeTarget(double attVal,
double target) |
double |
probabilityOfAttributeValueGivenClass(double attVal,
int classVal)
Gets the probability for an attribute value given a class
|
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUsegetDescription, measureByteSizevoid observeAttributeClass(double attVal,
int classVal,
double weight)
attVal - the value of the attributeclassVal - the classweight - the weight of the instancedouble probabilityOfAttributeValueGivenClass(double attVal,
int classVal)
attVal - the attribute valueclassVal - the classAttributeSplitSuggestion getBestEvaluatedSplitSuggestion(SplitCriterion criterion, double[] preSplitDist, int attIndex, boolean binaryOnly)
criterion - the split criterion to usepreSplitDist - the class distribution before the splitattIndex - the attribute indexbinaryOnly - true to use binary splitsvoid observeAttributeTarget(double attVal,
double target)
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.