create_ctree: Build all the conditional inference trees

View source: R/approach_ctree.R

create_ctreeR Documentation

Build all the conditional inference trees

Description

Build all the conditional inference trees

Usage

create_ctree(
  given_ind,
  x_train,
  mincriterion,
  minsplit,
  minbucket,
  use_partykit = "on_error"
)

Arguments

given_ind

Integer vector. Indicates which features are conditioned on.

x_train

Data.table with training data.

use_partykit

String. In some semi-rare cases partykit::ctree() runs into an error related to the LINPACK used by R. To get around this problem, one may fall back to using the newer (but slower) partykit::ctree() function, which is a reimplementation of the same method. Setting this parameter to "on_error" (default) falls back to partykit::ctree(), if party::ctree() fails. Other options are "never", which always uses party::ctree(), and "always", which always uses partykit::ctree(). A warning message is created whenever partykit::ctree() is used.

Details

See the documentation of the setup_approach.ctree() function for undocumented parameters.

Value

List with conditional inference tree and the variables conditioned/not conditioned on.

Author(s)

Annabelle Redelmeier, Martin Jullum


shapr documentation built on April 4, 2025, 12:18 a.m.