case class Node(f: Int, branch: Int, yp: Double, thresh: Double, depth: Int, pthresh: Double, pfea: Int, leaf: Boolean = false) extends Product with Serializable
Class that contains information for a tree node.
- f
the feature of the node, if it is leaf, contains the feature of its parent
- branch
the branch value (0 => left, 1 => right)
- yp
leaf node's prediction for y
- thresh
the threshold for continuous feature
- depth
the current depth of the node
- pthresh
the threshold for parent node
- pfea
the feature of parent node
- leaf
Boolean
value indicate whether is a leaf node
- Alphabetic
- By Inheritance
- Node
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Node(f: Int, branch: Int, yp: Double, thresh: Double, depth: Int, pthresh: Double, pfea: Int, leaf: Boolean = false)
- f
the feature of the node, if it is leaf, contains the feature of its parent
- branch
the branch value (0 => left, 1 => right)
- yp
leaf node's prediction for y
- thresh
the threshold for continuous feature
- depth
the current depth of the node
- pthresh
the threshold for parent node
- pfea
the feature of parent node
- leaf
Boolean
value indicate whether is a leaf node