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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val branch: Int
- val child: ArrayBuffer[Node]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val depth: Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val f: Int
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val leaf: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val pfea: Int
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val pthresh: Double
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val thresh: Double
- def toString(): String
Convert node to a string.
Convert node to a string.
- Definition Classes
- Node → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val yp: Double
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated