Packages

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

    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

    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.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

    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.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

    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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. 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

  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped