create_dot_body: Writes each node information If it is a leaf node: show it in...

View source: R/plot.R

create_dot_bodyR Documentation

Writes each node information If it is a leaf node: show it in different color, show number of samples, show leaf id If it is a non-leaf node: show its splitting variable and splitting value If trained with missing values, the edge arrow is filled according to which direction the NAs are sent.

Description

Writes each node information If it is a leaf node: show it in different color, show number of samples, show leaf id If it is a non-leaf node: show its splitting variable and splitting value If trained with missing values, the edge arrow is filled according to which direction the NAs are sent.

Usage

create_dot_body(tree, index = 1, include.na.path)

Arguments

tree

the tree to convert

index

the index of the current node

include.na.path

A boolean toggling whether to include the path of missing values or not.


grf documentation built on Oct. 1, 2023, 1:07 a.m.