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
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
Value Members
- val branch: Int
- val child: ArrayBuffer[Node]
- val depth: Int
- val f: Int
- val leaf: Boolean
- val pfea: Int
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val pthresh: Double
- val thresh: Double
- def toString(): String
Convert node to a string.
Convert node to a string.
- Definition Classes
- Node → AnyRef → Any
- val yp: Double