Interface AttributeStatisticsObserver
-
- All Superinterfaces:
Configurable
,MOAObject
,OptionHandler
,Serializable
- All Known Subinterfaces:
NominalStatisticsObserver
,NumericStatisticsObserver
- All Known Implementing Classes:
MultiLabelBSTree
,MultiLabelBSTreeFloat
,MultiLabelBSTreePCT
,MultiLabelNominalAttributeObserver
public interface AttributeStatisticsObserver extends OptionHandler
Interface for observing the statistics for an attribute. This observer monitors the statistics for a given attribute. Used in AMRulesMultiLabelLearners- Version:
- $Revision: 1 $
- Author:
- João Duarte (joaomaiaduarte@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttributeExpansionSuggestion
getBestEvaluatedSplitSuggestion(MultiLabelSplitCriterion criterion, DoubleVector[] preSplitStatistics, int inputAttributeIndex)
Gets the best split suggestion given a criterion and a class distributionvoid
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-
Methods inherited from interface moa.MOAObject
getDescription, measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
-
-
-
-
Method Detail
-
observeAttribute
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- Parameters:
inputAttributeValue
- the value for the attribute attributestatistics
- numOutputs x numStatistics the index of the statistic to store
-
getBestEvaluatedSplitSuggestion
AttributeExpansionSuggestion getBestEvaluatedSplitSuggestion(MultiLabelSplitCriterion criterion, DoubleVector[] preSplitStatistics, int inputAttributeIndex)
Gets the best split suggestion given a criterion and a class distribution- Parameters:
criterion
- the split criterion to usepreSplitStatistics
- the class distribution before the splitinputAttributeIndex
- the input attribute index- Returns:
- suggestion of best attribute split
-
-