Learn R Programming

tidypredict (version 1.1.0)

.build_nested_case_when_tree: Build nested case_when expression from tree info

Description

Shared helper for building nested tree expressions. This is the nested equivalent of .build_case_when_tree().

Usage

.build_nested_case_when_tree(tree_info)

Arguments

tree_info

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