| H2OTree-class {h2o} | R Documentation |
The H2OTree class.
Description
This class represents a model of a Tree built by one of H2O's algorithms (GBM, Random Forest).
Usage
## S4 method for signature 'H2OTree'
show(object)
Arguments
object |
an |
Slots
root_nodeA
H2ONoderepresenting the beginning of the tree behind the model. Allows further tree traversal.left_childrenAn
integervector with left child nodes of tree's nodesright_childrenAn
integervector with right child nodes of tree's nodesnode_idsAn
integerrepresenting identification number of a node. Node IDs are generated by H2O.descriptionsA
charactervector 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
characterwith the name of the model this tree is related to.tree_numberAn
integerrepresenting the order in which the tree has been built in the model.tree_classA
characterrepresenting 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
numericsplit thresholds. Split thresholds are not only related to numerical splits, but might be present in case of categorical split as well.featuresA
characterwith names of the feature/column used for the split.levelsA
characterrepresenting categorical levels on split from parent's node belonging into this node. NULL for root node or non-categorical splits.nasA
characterrepresenting if NA values go to the left node or right node. May be NA if node is a leaf.predictionsA
numericrepresenting predictions for each node in the graph.tree_decision_pathA
character, plain language rules representation of a trained decision treedecision_pathsA
characterrepresenting plain language rules that were used in a particular prediction.left_cat_splitA
characterlist of categorical levels leading to the left child node. Only present when split is categorical, otherwise none.right_cat_splitA
characterlist of categorical levels leading to the right child node. Only present when split is categorical, otherwise none.