Uses of Interface
org.tribuo.common.tree.Node
Package
Description
Provides internal implementation classes for classification decision trees.
Provides common functionality for building decision trees, irrespective
of the predicted
Output
.Provides an implementation of decision trees for regression problems.
Provides internal implementation classes for the regression trees.
-
Uses of Node in org.tribuo.classification.dtree.impl
Modifier and TypeClassDescriptionclass
A decision tree node used at training time. -
Uses of Node in org.tribuo.common.tree
Modifier and TypeClassDescriptionclass
AbstractTrainingNode<T extends Output<T>>
Base class for decision tree nodes used at training time.class
An immutable leafNode
that can create a prediction.class
An immutableNode
with a split and two child nodes.Modifier and TypeFieldDescriptionAbstractTrainingNode.greaterThan
AbstractTrainingNode.lessThanOrEqual
Modifier and TypeMethodDescriptionAbstractTrainingNode.convertTree()
Converts a tree from a training representation to the final inference time representation.AbstractTrainingNode.copy()
Node.copy()
Copies the node and it's children.SplitNode.copy()
SplitNode.getGreaterThan()
The node used if the value is greater than the splitValue.SplitNode.getLessThanOrEqual()
The node used if the value is less than or equal to the splitValue.AbstractTrainingNode.getNextNode
(SparseVector example) LeafNode.getNextNode
(SparseVector e) Node.getNextNode
(SparseVector example) Returns the next node in the tree based on the supplied example, or null if it's a leaf.SplitNode.getNextNode
(SparseVector e) Return the appropriate child node.TreeModel.getRoot()
Returns the root node of this tree.Modifier and TypeMethodDescriptionTreeModel.deserializeFromProtos
(List<org.tribuo.common.tree.protos.TreeNodeProto> nodeProtos, Class<U> outputClass) We will start off with a list of node builders that we will replace item-by-item with the nodes that they built.Modifier and TypeMethodDescriptionprotected static <T extends Output<T>>
intTreeModel.computeDepth
(int initialDepth, Node<T> root) Computes the depth of the tree.int
TreeModel.countNodes
(Node<T> root) Counts the number of nodes in the tree rooted at the supplied node, including that node.protected List<org.tribuo.common.tree.protos.TreeNodeProto>
TreeModel.serializeToNodes
(Node<T> root) Serializes the supplied node tree into a list of protobufs. -
Uses of Node in org.tribuo.regression.rtree
Modifier and TypeMethodDescriptionIndependentRegressionTreeModel.getRoot()
Returns null, as this model contains multiple roots, one per regression output dimension. -
Uses of Node in org.tribuo.regression.rtree.impl
Modifier and TypeClassDescriptionclass
A decision tree node used at training time.class
A decision tree node used at training time.Modifier and TypeMethodDescriptionJointRegressorTrainingNode.convertTree()
RegressorTrainingNode.convertTree()