Node

scalation.modeling.regtrees.Node
case class Node(j: Int, branch: Int, b: VectorD, thresh: Double, depth: Int, pthresh: Double, pfea: Int, leaf: Boolean = ...)

The Node class contains information for a tree node.

Value parameters

b

leaf node's prediction parameters (b0 for mean or b for regression)

branch

the branch value (0 => left, 1 => right)

depth

the current depth of the node

j

the feature/variable of the node used for splitting, if it is leaf, contains the feature of its parent

leaf

whether the node is a leaf node

pfea

the feature of parent node

pthresh

the threshold for parent node

thresh

the threshold for continuous feature

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Convert node to a string.

Convert node to a string.

Attributes

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Concrete fields

val child: ArrayBuffer[Node]