View source: R/finalize_explanation.R
compute_MSEv_eval_crit | R Documentation |
v(S)
Function that computes 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 nor the true Shapley values to be computed. A lower value indicates better approximations, however, the scale and magnitude of the MSEv criterion is not directly interpretable in regard to the precision of the final estimated Shapley values. Olsen et al. (2024) illustrates in Figure 11 a fairly strong linear relationship between the MSEv criterion and the MAE between the estimated and true Shapley values in a simulation study. Note that explicands refer to the observations whose predictions we are to 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.