Enum PMMLTreeModel.MissingValueStrategy

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      aggregateNodes
      If a Node's predicate value evaluates to UNKNOWN while traversing the tree, we consider evaluation of the Node's predicate being TRUE and follow this Node.
      defaultChild
      If a Node's predicate value evaluates to UNKNOWN while traversing the tree, evaluate the attribute defaultChild which gives the child to continue traversing with.
      lastPrediction
      If a Node's predicate evaluates to UNKNOWN while traversing the tree, evaluation is stopped and the current winner is returned as the final prediction
      none
      Comparisons with missing values other than checks for missing values always evaluate to FALSE.
      nullPrediction
      If a Node's predicate value evaluates to UNKNOWN while traversing the tree, abort the scoring process and give no prediction.
      weightedConfidence
      If a Node's predicate value evaluates to UNKNOWN while traversing the tree, the confidences for each class is calculated from scoring it and each of its sibling Nodes in turn (excluding any siblings whose predicates evaluate to FALSE).
    • Enum Constant Detail

      • lastPrediction

        public static final PMMLTreeModel.MissingValueStrategy lastPrediction
        If a Node's predicate evaluates to UNKNOWN while traversing the tree, evaluation is stopped and the current winner is returned as the final prediction
      • nullPrediction

        public static final PMMLTreeModel.MissingValueStrategy nullPrediction
        If a Node's predicate value evaluates to UNKNOWN while traversing the tree, abort the scoring process and give no prediction.
      • defaultChild

        public static final PMMLTreeModel.MissingValueStrategy defaultChild
        If a Node's predicate value evaluates to UNKNOWN while traversing the tree, evaluate the attribute defaultChild which gives the child to continue traversing with.
      • weightedConfidence

        public static final PMMLTreeModel.MissingValueStrategy weightedConfidence
        If a Node's predicate value evaluates to UNKNOWN while traversing the tree, the confidences for each class is calculated from scoring it and each of its sibling Nodes in turn (excluding any siblings whose predicates evaluate to FALSE).
      • aggregateNodes

        public static final PMMLTreeModel.MissingValueStrategy aggregateNodes
        If a Node's predicate value evaluates to UNKNOWN while traversing the tree, we consider evaluation of the Node's predicate being TRUE and follow this Node.
    • Method Detail

      • values

        public static PMMLTreeModel.MissingValueStrategy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PMMLTreeModel.MissingValueStrategy c : PMMLTreeModel.MissingValueStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PMMLTreeModel.MissingValueStrategy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null