Calculate weights for explanation model
calculate_weights(simulated_dataset, explained_instance, kernel)
simulated_dataset | Dataset simulated by sample_locally function. |
---|---|
explained_instance | Instance to be explained. |
kernel | Chosen kernel function. |
Numeric vector of weights for each row in simulated dataset.