observation_impute {shapr} | R Documentation |
Generate permutations of training data using test observations
Description
Generate permutations of training data using test observations
Usage
observation_impute(
W_kernel,
S,
x_train,
x_explain,
empirical.eta = 0.7,
n_MC_samples = 1000
)
Arguments
W_kernel |
Numeric matrix. Contains all nonscaled weights between training and test
observations for all coalitions. The dimension equals |
S |
Integer matrix of dimension |
x_train |
Data.table with training data. |
x_explain |
Data.table with the features of the observation whose predictions ought to be explained (test data). |
Value
data.table
Author(s)
Nikolai Sellereite
[Package shapr version 1.0.4 Index]