model_profile function

It allows the computation of:

  • PD (type = "partial")
pd_rf <- model_profile(explainer = explainer_apart_rf,
                       type = "partial",
                       variables = c("no.rooms", "surface"))
  • LD (type = "conditional")
ld_rf <- model_profile(explainer = explainer_apart_rf,
                       type      = "conditional",
                       variables = c("no.rooms", "surface"))
  • AL (type = "accumulated")
al_rf <- model_profile(explainer = explainer_apart_rf,
                       type = "accumulated",
                       variables = c("no.rooms", "surface"))