public interface DecisionTreeSurrogateMethod extends Serializable
DecisionTree abstract class and
implement the DecisionTreeSurrogateMethod interface.
When predicting a new observation, if the value of the split variable is
missing, the prediction function uses surrogate split variables and
associated rules, in order of selection. If none can be applied because of
continued missing values, the prediction will be missing.| Modifier and Type | Method and Description |
|---|---|
void |
addSurrogates(Tree tree,
double[] surrogateInfo)
Adds the surrogate information to the tree.
|
int |
getNumberOfSurrogateSplits()
Indicates the number of surrogate splits.
|
double[] |
getSurrogateInfo()
Returns the surrogate split information.
|
void |
setNumberOfSurrogateSplits(int nSplits)
Indicates the number of surrogate splits.
|
void addSurrogates(Tree tree, double[] surrogateInfo)
tree - a Tree containing the decision support information.surrogateInfo - a double array containing the surrogate
split information.int getNumberOfSurrogateSplits()
int specifying the number of surrogate splits.double[] getSurrogateInfo()
double array containing the surrogate split
information.void setNumberOfSurrogateSplits(int nSplits)
nSplits - an int specifying the number of surrogate
splits that should occur.
Copyright © 1970-2015 Rogue Wave Software
Built March 24 2015.