|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.apache.spark.ml.tree.Node
org.apache.spark.ml.tree.InternalNode
public final class InternalNode
:: DeveloperApi :: Internal Decision Tree node. param: prediction Prediction this node would make if it were a leaf node param: impurity Impurity measure at this node (for training data) param: gain Information gain value. Values < 0 indicate missing values; this quirk will be removed with future updates. param: leftChild Left-hand child node param: rightChild Right-hand child node param: split Information about the test used to split to the left or right child.
Method Summary | |
---|---|
double |
gain()
|
double |
impurity()
Impurity measure at this node (for training data) |
Node |
leftChild()
|
double |
prediction()
Prediction a leaf node makes, or which an internal node would make if it were a leaf node |
Node |
rightChild()
|
Split |
split()
|
String |
toString()
|
Methods inherited from class org.apache.spark.ml.tree.Node |
---|
fromOld |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public double prediction()
Node
prediction
in class Node
public double impurity()
Node
impurity
in class Node
public double gain()
public Node leftChild()
public Node rightChild()
public Split split()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |