Trait

ml.combust.bundle.tree.decision

NodeWrapper

Related Doc: package decision

Permalink

trait NodeWrapper[N] extends AnyRef

Type class for decision-tree node-like objects.

This type class is used to convert decision tree nodes into the appropriate Bundle.ML node representations for serializing and deserializing.

N

node type that can be serialized to Bundle.ML

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NodeWrapper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def internal(node: InternalNode, left: N, right: N): N

    Permalink

    Create an internal node from a Bundle.ML internal node.

    Create an internal node from a Bundle.ML internal node.

    node

    Bundle.ML internal node

    left

    left child of internal node

    right

    right child of internal node

    returns

    internal node

  2. abstract def isInternal(node: N): Boolean

    Permalink

    Whether or not node is internal.

    Whether or not node is internal.

    node

    decision tree node

    returns

    true if internal node, false otherwise

  3. abstract def leaf(node: LeafNode, withImpurities: Boolean): N

    Permalink

    Create a leaf node from a Bundle.ML leaf node.

    Create a leaf node from a Bundle.ML leaf node.

    node

    Bundle.ML leaf node

    withImpurities

    whether to include impurities in leaf nodes

    returns

    leaf node

  4. abstract def left(node: N): N

    Permalink

    Get the left node for an internal node.

    Get the left node for an internal node.

    node

    internal decision tree node

    returns

    left child of the node

  5. abstract def node(node: N, withImpurities: Boolean): Node

    Permalink

    Convert node to the Bundle.ML node for serialization.

    Convert node to the Bundle.ML node for serialization.

    node

    node to convert

    withImpurities

    flag to include impurities or not

    returns

    Bundle.ML node

  6. abstract def right(node: N): N

    Permalink

    Get the right child for an internal node.

    Get the right child for an internal node.

    node

    internal decision tree node

    returns

    right child of the node

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. def isLeaf(node: N): Boolean

    Permalink

    Whether or not node is a leaf node.

    Whether or not node is a leaf node.

    node

    decision tree node

    returns

    true if leaf, false otherwise

  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped