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
- Alphabetic
- By Inheritance
- NodeWrapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
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
-
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
-
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
-
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
-
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
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated