Extracts and creates explainers for all components of a joint_model:
the survival model (via survex), the binary status model (via DALEX),
and the continuous duration time model (via DALEX).
Usage
explain_joint(
model,
data = NULL,
type = c("all", "survival", "status", "time", "stack"),
times = NULL,
label = NULL,
verbose = FALSE,
...
)
explain_model(
model,
data = NULL,
type = c("all", "survival", "status", "time", "stack"),
times = NULL,
label = NULL,
verbose = FALSE,
...
)
explain_status(model, data = NULL, label = NULL, verbose = FALSE, ...)
explain_time(model, data = NULL, label = NULL, verbose = FALSE, ...)
explain_stack(model, data = NULL, label = NULL, verbose = FALSE, ...)Arguments
- model
A fitted
joint_modelobject.- data
Evaluation data frame with the original predictor columns (before one-hot encoding; extra columns are ignored). If
NULL, the training predictors are used, as the original columns. The status and time explainers re-apply the model's training encoding withforge, aspredict.joint_modeldoes, so a factor predictor is one column in the explainers too.- type
Character indicating which component(s) to explain:
"all","survival","status","time", or"stack".- times
Numeric vector of evaluation time points for survival explanations.
- label
Optional custom label prefix.
- verbose
Logical; if
TRUE, progress messages are shown. Default isFALSE.- ...
Additional arguments passed to the underlying explainers.
