This class represents a model of a Tree built by one of H2O's algorithms (GBM, Random Forest).
# S4 method for H2OTree show(object)
| object | an |
|---|
root_nodeA H2ONode representing the beginning of the tree behind the model. Allows further tree traversal.
left_childrenAn integer vector with left child nodes of tree's nodes
right_childrenAn integer vector with right child nodes of tree's nodes
node_idsAn integer representing identification number of a node. Node IDs are generated by H2O.
descriptionsA character vector with descriptions for each node to be found in the tree. Contains split threshold if the split is based on numerical column.
For cactegorical splits, it contains list of categorical levels for transition from the parent node.
model_idA character with the name of the model this tree is related to.
tree_numberAn integer representing the order in which the tree has been built in the model.
tree_classA character representing name of tree's class. Number of tree classes equals to the number of levels in categorical response column.
As there is exactly one class per categorical level, name of tree's class equals to the corresponding categorical level of response column.
In case of regression and binomial, the name of the categorical level is ignored can be omitted, as there is exactly one tree built in both cases.
thresholdsA numeric split thresholds. Split thresholds are not only related to numerical splits, but might be present in case of categorical split as well.
featuresA character with names of the feature/column used for the split.
levelsA character representing categorical levels on split from parent's node belonging into this node. NULL for root node or non-categorical splits.
nasA character representing if NA values go to the left node or right node. May be NA if node is a leaf.
predictionsA numeric representing predictions for each node in the graph.
tree_decision_pathA character, plain language rules representation of a trained decision tree
decision_pathsA character representing plain language rules that were used in a particular prediction.
left_cat_splitA character list of categorical levels leading to the left child node. Only present when split is categorical, otherwise none.
right_cat_splitA character list of categorical levels leading to the right child node. Only present when split is categorical, otherwise none.