Node

scalation.modeling.classifying.Node
See theNode companion object
case class Node(j: Int, gn: Double, nu: VectorI, parent: Node, y: Int, var leaf: Boolean) extends Cloneable

The Node class is used to hold information about a node in the decision tree.

Value parameters

gn

the information gain recorded at this node

j

the feature/variable number used for splitting (negative => leaf)

leaf

whether the node is a leaf (terminal node)

nu

the frequency count

parent

the parent node (null for root)

y

the response/decision value

Attributes

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

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product