Learn R Programming

tidypredict (version 1.1.0)

build_nested_node: Build a nested case_when expression for a single node

Description

Build a nested case_when expression for a single node

Usage

build_nested_node(node_id, tree_info)

Arguments

node_id

The node ID to build (0-indexed)

tree_info

Tree info list with nodeID, leftChild, rightChild, splitvarName, terminal, prediction, and node_splits