Module datarush.analytics
Enum PMMLTreeModel.MissingValueStrategy
- java.lang.Object
-
- java.lang.Enum<PMMLTreeModel.MissingValueStrategy>
-
- com.pervasive.datarush.analytics.decisiontree.PMMLTreeModel.MissingValueStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<PMMLTreeModel.MissingValueStrategy>
- Enclosing class:
- PMMLTreeModel
public static enum PMMLTreeModel.MissingValueStrategy extends Enum<PMMLTreeModel.MissingValueStrategy>
Corresponds to the PMMLMISSING-VALUE-STRATEGY
enumeration.- See Also:
- TreeModel missing value strategies
-
-
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 predictionnone
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).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PMMLTreeModel.MissingValueStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static PMMLTreeModel.MissingValueStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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.
-
none
public static final PMMLTreeModel.MissingValueStrategy none
Comparisons with missing values other than checks for missing values always evaluate to FALSE.
-
-
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 nameNullPointerException
- if the argument is null
-
-