Create an internal node from a Bundle.ML internal node.
Create an internal node from a Bundle.ML internal node.
Bundle.ML internal node
left child of internal node
right child of internal node
internal node
Whether or not node is internal.
Whether or not node is internal.
decision tree node
true if internal node, false otherwise
Create a leaf node from a Bundle.ML leaf node.
Create a leaf node from a Bundle.ML leaf node.
Bundle.ML leaf node
whether to include impurities in leaf nodes
leaf node
Get the left node for an internal node.
Get the left node for an internal node.
internal decision tree node
left child of the node
Convert node to the Bundle.ML node for serialization.
Convert node to the Bundle.ML node for serialization.
node to convert
flag to include impurities or not
Bundle.ML node
Get the right child for an internal node.
Get the right child for an internal node.
internal decision tree node
right child of the node
Whether or not node is a leaf node.
Whether or not node is a leaf node.
decision tree node
true if leaf, false otherwise
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.
node type that can be serialized to Bundle.ML