Interface AttributeStatisticsObserver

    • 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 attribute
        statistics - 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 use
        preSplitStatistics - the class distribution before the split
        inputAttributeIndex - the input attribute index
        Returns:
        suggestion of best attribute split