get_node_parents: Plot tree structure

Description Usage Arguments Value

View source: R/get_node_parents.R

Description

Helper function for plot_tree. Takes node structure output from pretty.gbm.tree which is 1 row per node showing child nodes for that node and returns the parents of each node.

Usage

1
get_node_parents(pretty_tree)

Arguments

pretty_tree

data.frame output from pretty.gbm.tree function.

Value

data.frame with columns;

parent

parent of node

node

node of interest


richardangell/GbmExplainR documentation built on May 22, 2019, 12:54 p.m.