Learn R Programming

shapr (version 1.0.4)

prepare_data: Generate data used for predictions and Monte Carlo integration

Description

Generate data used for predictions and Monte Carlo integration

Usage

prepare_data(internal, index_features = NULL, ...)

# S3 method for categorical prepare_data(internal, index_features = NULL, ...)

# S3 method for copula prepare_data(internal, index_features, ...)

# S3 method for ctree prepare_data(internal, index_features = NULL, ...)

# S3 method for empirical prepare_data(internal, index_features = NULL, ...)

# S3 method for gaussian prepare_data(internal, index_features, ...)

# S3 method for independence prepare_data(internal, index_features = NULL, ...)

# S3 method for regression_separate prepare_data(internal, index_features = NULL, ...)

# S3 method for regression_surrogate prepare_data(internal, index_features = NULL, ...)

# S3 method for timeseries prepare_data(internal, index_features = NULL, ...)

# S3 method for vaeac prepare_data(internal, index_features = NULL, ...)

Value

A data.table containing simulated data used to estimate the contribution function by Monte Carlo integration.

Arguments

internal

List. Not used directly, but passed through from explain().

index_features

Positive integer vector. Specifies the id_coalition to apply to the present method. NULL means all coalitions. Only used internally.

...

Currently not used.

Author

Martin Jullum

Annabelle Redelmeier and Lars Henry Berge Olsen

Lars Henry Berge Olsen

Martin Jullum,