case class Node(f: Int, gn: Double, nu: VectoI, parent: Node = null, y: Int, isLeaf: Boolean = false) extends Cloneable with Product with Serializable
The Node
class is used to hold information about a node in the decision tree.
- f
the feature/variable number used for splitting (negative => leaf)
- gn
the information gain recorded at this node
- nu
the frequency count
- parent
the parent node (null for root)
- y
the response/decision value
- isLeaf
whether the node is a leaf (terminal node)
- Alphabetic
- By Inheritance
- Node
- Serializable
- Serializable
- Product
- Equals
- Cloneable
- Cloneable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Node(f: Int, gn: Double, nu: VectoI, parent: Node = null, y: Int, isLeaf: Boolean = false)
- f
the feature/variable number used for splitting (negative => leaf)
- gn
the information gain recorded at this node
- nu
the frequency count
- parent
the parent node (null for root)
- y
the response/decision value
- isLeaf
whether the node is a leaf (terminal node)