View source: R/finalize_explanation.R
compute_MSEv_eval_crit | R Documentation |
v(S)
Compute the mean squared error (MSEv) of the contribution function v(S) as proposed by Frye et al. (2019) and used by Olsen et al. (2022).
compute_MSEv_eval_crit(
internal,
dt_vS,
MSEv_uniform_comb_weights,
MSEv_skip_empty_full_comb = TRUE
)
internal |
List.
Holds all parameters, data, functions and computed objects used within |
dt_vS |
Data.table of dimension |
MSEv_uniform_comb_weights |
Logical.
If |
MSEv_skip_empty_full_comb |
Logical. If |
The MSEv evaluation criterion does not rely on access to the true contribution functions or the true Shapley values. A lower value indicates better approximations; however, the scale and magnitude of MSEv are not directly interpretable regarding the precision of the final estimated Shapley values. Olsen et al. (2024) illustrates (Figure 11) a fairly strong linear relationship between MSEv and the MAE between the estimated and true Shapley values in a simulation study. Note: explicands are the observations whose predictions we explain.
List containing:
MSEv
A data.table
with the overall MSEv evaluation criterion averaged
over both the coalitions and observations/explicands. The data.table
also contains the standard deviation of the MSEv values for each explicand (only averaged over the coalitions)
divided by the square root of the number of explicands.
MSEv_explicand
A data.table
with the mean squared error for each
explicand, i.e., only averaged over the coalitions.
MSEv_coalition
A data.table
with the mean squared error for each
coalition, i.e., only averaged over the explicands/observations.
The data.table
also contains the standard deviation of the MSEv values for
each coalition divided by the square root of the number of explicands.
Lars Henry Berge Olsen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.