prepare_data | R Documentation |
Generate data used for predictions
prepare_data(x, ...)
## S3 method for class 'empirical'
prepare_data(x, seed = 1, n_samples = 1000, index_features = NULL, ...)
## S3 method for class 'gaussian'
prepare_data(x, seed = 1, n_samples = 1000, index_features = NULL, ...)
## S3 method for class 'copula'
prepare_data(
x,
x_test_gaussian = 1,
seed = 1,
n_samples = 1000,
index_features = NULL,
...
)
## S3 method for class 'ctree'
prepare_data(
x,
seed = 1,
n_samples = 1000,
index_features = NULL,
mc_cores = 1,
mc_cores_create_ctree = mc_cores,
mc_cores_sample_ctree = mc_cores,
...
)
x |
Explainer object. See |
... |
Currently not used. |
seed |
Positive integer. If |
n_samples |
Integer. The number of obs to sample from the leaf if |
index_features |
List. Default is NULL but if either various methods are being used or various mincriterion are used for different numbers of conditioned features, this will be a list with the features to pass. |
x_test_gaussian |
Matrix. Test data quantile-transformed to standard Gaussian variables. Only applicable if
|
mc_cores |
Integer. Only for class |
mc_cores_create_ctree |
Integer. Same as |
mc_cores_sample_ctree |
Integer. Same as |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.