public class DecisionTreeModel extends Object implements IgniteModel<Vector,Double>, JSONWritable
Constructor and Description |
---|
DecisionTreeModel(DecisionTreeNode rootNode)
Creates the model.
|
Modifier and Type | Method and Description |
---|---|
static DecisionTreeModel |
fromJSON(Path path)
Loads DecisionTreeModel from JSON file.
|
DecisionTreeNode |
getRootNode()
Returns the root node.
|
Double |
predict(Vector features)
Make a prediction for the specified input arguments.
|
void |
toJSON(Path path) |
String |
toString() |
String |
toString(boolean pretty) |
public DecisionTreeModel(DecisionTreeNode rootNode)
rootNode
- Root node of the tree.public DecisionTreeNode getRootNode()
public String toString(boolean pretty)
toString
in interface IgniteModel<Vector,Double>
pretty
- Use pretty mode.public void toJSON(Path path)
toJSON
in interface JSONWritable
public static DecisionTreeModel fromJSON(Path path)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021