public class NodeSplit extends Object implements Serializable
Constructor and Description |
---|
NodeSplit(int featureId,
double val,
double gain,
double impurity)
Creates an instance of NodeSplit.
|
Modifier and Type | Method and Description |
---|---|
void |
createLeaf(TreeNode node)
Convert node to leaf.
|
double |
getGain() |
double |
getImpurity() |
double |
getVal() |
List<TreeNode> |
split(TreeNode node)
Split node from parameter onto two children nodes.
|
public NodeSplit(int featureId, double val, double gain, double impurity)
featureId
- Feature id.val
- Feature split value.gain
- Gain value.impurity
- Impurity value.public List<TreeNode> split(TreeNode node)
node
- Node.public void createLeaf(TreeNode node)
node
- Node.public double getImpurity()
public double getGain()
public double getVal()
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024