|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectorg.apache.spark.ml.tree.Node
public abstract class Node
:: DeveloperApi :: Decision tree node interface.
| Constructor Summary | |
|---|---|
Node()
|
|
| Method Summary | |
|---|---|
static Node |
fromOld(Node oldNode,
scala.collection.immutable.Map<Object,Object> categoricalFeatures)
Create a new Node from the old Node format, recursively creating child nodes as needed. |
abstract double |
impurity()
Impurity measure at this node (for training data) |
abstract double |
prediction()
Prediction a leaf node makes, or which an internal node would make if it were a leaf node |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Node()
| Method Detail |
|---|
public static Node fromOld(Node oldNode,
scala.collection.immutable.Map<Object,Object> categoricalFeatures)
oldNode - (undocumented)categoricalFeatures - (undocumented)
public abstract double prediction()
public abstract double impurity()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||