I have performed previously model interpretation (pdp) on my survival models in MLR. However, I am unable to do it in MLR3 due to the "Predictor" object that is not accept models from type survival.
I have attached below a sample code from MLR, is there anyways to do model interpretation in MLR3?
mod = train(lrn,surv.task)
task.pred = predict(mod,newdata = traindata)
getLearnerModel(mod)
pd = generatePartialDependenceData(mod,surv.task,c("X","Y","Z"))
plotPartialDependence(pd)
as for c("X","Y","Z")) #These are three random features (I want to be able to do it for all features and for selected ones like in MLR)
to my knowledge
mlr3cannot directly apply interpretable machine learning methods to survival models. However, there is thesurvexpackage, which can perform a plethora of explainability analyses and is compatible withmlr3proba(survex package GitHub link)Here is a minimal code example how you can generate PDPs from a fitted
mlr3probamodel, you can check the package vignettes for more information: