weight_matrix | R Documentation |
Calculate weighted matrix
weight_matrix(X, normalize_W_weights = TRUE, is_groupwise = FALSE)
X |
data.table |
normalize_W_weights |
Logical. Whether to normalize the weights for the combinations to sum to 1 for
increased numerical stability before solving the WLS (weighted least squares). Applies to all combinations
except combination |
is_groupwise |
Logical. Indicating whether group wise Shapley values are to be computed. |
Numeric matrix. See weight_matrix_cpp()
for more information.
Nikolai Sellereite, Martin Jullum
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.