Interface AttributeClassObserver

    • Method Detail

      • observeAttributeClass

        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
        Parameters:
        attVal - the value of the attribute
        classVal - the class
        weight - the weight of the instance
      • probabilityOfAttributeValueGivenClass

        double probabilityOfAttributeValueGivenClass​(double attVal,
                                                     int classVal)
        Gets the probability for an attribute value given a class
        Parameters:
        attVal - the attribute value
        classVal - the class
        Returns:
        probability for an attribute value given a class
      • getBestEvaluatedSplitSuggestion

        AttributeSplitSuggestion getBestEvaluatedSplitSuggestion​(SplitCriterion criterion,
                                                                 double[] preSplitDist,
                                                                 int attIndex,
                                                                 boolean binaryOnly)
        Gets the best split suggestion given a criterion and a class distribution
        Parameters:
        criterion - the split criterion to use
        preSplitDist - the class distribution before the split
        attIndex - the attribute index
        binaryOnly - true to use binary splits
        Returns:
        suggestion of best attribute split
      • observeAttributeTarget

        void observeAttributeTarget​(double attVal,
                                    double target)