Uses of Interface
org.tribuo.common.tree.Node
Packages that use Node
Package
Description
Provides common functionality for building decision trees, irrespective
of the predicted
Output.-
Uses of Node in org.tribuo.common.tree
Classes in org.tribuo.common.tree that implement NodeModifier and TypeClassDescriptionclassAbstractTrainingNode<T extends Output<T>>Base class for decision tree nodes used at training time.classAn immutable leafNodethat can create a prediction.classAn immutableNodewith a split and two child nodes.Fields in org.tribuo.common.tree declared as NodeModifier and TypeFieldDescriptionAbstractTrainingNode.greaterThanAbstractTrainingNode.lessThanOrEqualMethods in org.tribuo.common.tree that return NodeModifier 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.Methods in org.tribuo.common.tree that return types with arguments of type NodeModifier 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.Methods in org.tribuo.common.tree with parameters of type NodeModifier and TypeMethodDescriptionprotected static <T extends Output<T>>
intTreeModel.computeDepth(int initialDepth, Node<T> root) Computes the depth of the tree.intTreeModel.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.Constructors in org.tribuo.common.tree with parameters of type Node