Generate data used for predictions
prepare_data(x, ...)# S3 method for empirical
prepare_data(x, seed = 1, n_samples = 1000, index_features = NULL, ...)
# S3 method for gaussian
prepare_data(x, seed = 1, n_samples = 1000, index_features = NULL, ...)
# S3 method for copula
prepare_data(
x,
x_test_gaussian = 1,
seed = 1,
n_samples = 1000,
index_features = NULL,
...
)
Explainer object. See explain
for more information.
Currently not used.
Positive integer. If NULL
the seed will be inherited from the calling environment.
Positive integer. Indicating the maximum number of samples to use in the Monte Carlo integration for every conditional expectation.
Positive integer vector. Specifies the indices of combinations to apply to the present method.
NULL
means all combinations. Only used internally.
Matrix. Test data quantile-transformed to standard Gaussian variables. Only applicable if
approach = "empirical"
.