get_extra_comp_args_default | R Documentation |
Gets the default values for the extra computation arguments
get_extra_comp_args_default(
internal,
paired_shap_sampling = isFALSE(internal$parameters$asymmetric),
kernelSHAP_reweighting = "on_all_cond",
compute_sd = isFALSE(internal$parameters$exact),
n_boot_samps = 100,
max_batch_size = 10,
min_n_batches = 10
)
internal |
List.
Not used directly, but passed through from |
paired_shap_sampling |
Logical.
If |
kernelSHAP_reweighting |
String.
How to reweight the sampling frequency weights in the kernelSHAP solution after sampling.
The aim of this is to reduce the randomness and thereby the variance of the Shapley value estimates.
The options are one of |
compute_sd |
Logical. Whether to estimate the standard deviations of the Shapley value estimates. This is TRUE whenever sampling based kernelSHAP is applied (either iteratively or with a fixed number of coalitions). |
n_boot_samps |
Integer. The number of bootstrapped samples (i.e. samples with replacement) from the set of all coalitions used to estimate the standard deviations of the Shapley value estimates. |
max_batch_size |
Integer. The maximum number of coalitions to estimate simultaneously within each iteration. A larger numbers requires more memory, but may have a slight computational advantage. |
min_n_batches |
Integer. The minimum number of batches to split the computation into within each iteration. Larger numbers gives more frequent progress updates. If parallelization is applied, this should be set no smaller than the number of parallel workers. |
A list with the default values for the extra computation arguments.
Martin Jullum
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.