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
object, containing the decision tree structuresurrogateInfo
- a double
array containing the surrogate
split informationint getNumberOfSurrogateSplits()
int
specifying the number of surrogate splitsvoid setNumberOfSurrogateSplits(int nSplits)
nSplits
- an int
specifying the number of surrogate
splits that should occur
double[] getSurrogateInfo()
double
array containing the surrogate split
informationCopyright © 2020 Rogue Wave Software. All rights reserved.