public interface AttributeStatisticsObserver extends OptionHandler
Modifier and Type | Method and Description |
---|---|
AttributeExpansionSuggestion |
getBestEvaluatedSplitSuggestion(MultiLabelSplitCriterion criterion,
DoubleVector[] preSplitStatistics,
int inputAttributeIndex)
Gets the best split suggestion given a criterion and a class distribution
|
void |
observeAttribute(double inputAttributeValue,
DoubleVector[] statistics)
Updates statistics of this observer given an attribute value, the index of the statistic
and the weight of the instance observed
|
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
getDescription, measureByteSize
void observeAttribute(double inputAttributeValue, DoubleVector[] statistics)
inputAttributeValue
- the value for the attribute attributestatistics
- numOutputs x numStatistics the index of the statistic to storeAttributeExpansionSuggestion getBestEvaluatedSplitSuggestion(MultiLabelSplitCriterion criterion, DoubleVector[] preSplitStatistics, int inputAttributeIndex)
criterion
- the split criterion to usepreSplitDist
- the class distribution before the splitattIndex
- the input attribute indexCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.