public class NodeSplit extends Object
Constructor and Description |
---|
NodeSplit(int featureId,
double val,
double impurity)
Creates an instance of NodeSplit.
|
Modifier and Type | Method and Description |
---|---|
void |
createLeaf(TreeNode node)
Convert node to leaf.
|
double |
getImpurity() |
double |
getVal() |
List<TreeNode> |
split(TreeNode node)
Split node from parameter onto two children nodes.
|
public NodeSplit(int featureId, double val, double impurity)
featureId
- Feature id.val
- Feature split value.impurity
- Impurity value.public List<TreeNode> split(TreeNode node)
node
- Node.public void createLeaf(TreeNode node)
node
- Node.public double getImpurity()
public double getVal()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019