surv_shap | R Documentation |
predict_parts.R
Helper functions for predict_parts.R
surv_shap(
explainer,
new_observation,
output_type,
...,
N = NULL,
y_true = NULL,
calculation_method = c("kernelshap", "exact_kernel", "treeshap"),
aggregation_method = c("integral", "mean_absolute", "max_absolute", "sum_of_squares")
)
explainer |
an explainer object - model preprocessed by the |
new_observation |
new observations for which predictions need to be explained |
output_type |
a character, either |
... |
additional parameters, passed to internal functions |
N |
a positive integer, number of observations used as the background data |
y_true |
a two element numeric vector or matrix of one row and two columns, the first element being the true observed time and the second the status of the observation, used for plotting |
calculation_method |
a character, either |
aggregation_method |
a character, either |
A list, containing the calculated SurvSHAP(t) results in the result
field
[1] Krzyziński, Mateusz, et al. "SurvSHAP(t): Time-dependent explanations of machine learning survival models." Knowledge-Based Systems 262 (2023): 110234
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.