Skip to contents

Merges user-supplied controls with ci_tree_control() defaults and validates the scalar tuning values used by the greedy CI split search and recursive tree builder.

This helper accepts the overlapping control names used by partykit::ctree_control(), which keeps older examples and user code easy to migrate while still dropping test-based conditional-inference controls such as mincriterion.

Usage

.ci_tree_normalize_control(control = NULL)

Arguments

control

NULL, a list from ci_tree_control(), or a compatible partykit::ctree_control() object.

Value

A normalized list with integer minsplit, minbucket, and mtry values where appropriate.