Calculate weights for explanation model

calculate_weights(simulated_dataset, explained_instance, kernel)

Arguments

simulated_dataset

Dataset simulated by sample_locally function.

explained_instance

Instance to be explained.

kernel

Chosen kernel function.

Value

Numeric vector of weights for each row in simulated dataset.