ml.combust.bundle.tree.decision

NodeWrapper

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
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Create an internal node from a Bundle.

    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

    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

    Create a leaf node from a Bundle.

    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

    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

    Convert node to the Bundle.

    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

    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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

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

    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

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

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped