Sample ctree variables from a given conditional inference tree
sample_ctree(tree, n_MC_samples, x_explain, x_train, n_features, sample)
data.table with n_MC_samples
(conditional) Gaussian samples
List. Contains tree which is an object of type ctree built from the party package. Also contains given_ind, the features to condition upon.
Scalar integer.
Corresponds to the number of samples from the leaf node.
See an exception when sample = FALSE in setup_approach.ctree()
.
Data.table with the features of the observation whose predictions ought to be explained (test data).
Data.table with training data.
Positive integer. The number of features.
Annabelle Redelmeier
See the documentation of the setup_approach.ctree()
function for undocumented parameters.