public class TreeRoot extends Object implements IgniteModel<Vector,Double>
Constructor and Description |
---|
TreeRoot(TreeNode root,
Set<Integer> usedFeatures)
Create an instance of TreeRoot.
|
Modifier and Type | Method and Description |
---|---|
List<TreeNode> |
getLeafs() |
TreeNode |
getRootNode() |
Set<Integer> |
getUsedFeatures() |
Double |
predict(Vector vector)
Make a prediction for the specified input arguments.
|
static String |
printTree(TreeNode node,
boolean pretty)
Represents DecisionTree as String.
|
String |
toString() |
String |
toString(boolean pretty) |
public TreeNode getRootNode()
public static String printTree(TreeNode node, boolean pretty)
node
- Decision tree.pretty
- Use pretty mode.public String toString(boolean pretty)
toString
in interface IgniteModel<Vector,Double>
pretty
- Use pretty mode.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020