Local-stability class plot

  • The profiles are not parallel, indicating non-additivity of the effect.

  • The profiles relatively close to each other, suggesting the stability of predictions.

id_rf_class <- predict_diagnostics(explainer = explain_rf,
                                   new_observation = henry,
                                   neighbours = 10,
                                   variables = "class")

plot(id_rf_class) 
## 'variable_type' changed to 'categorical' due to lack of numerical variables.
## 'variable_type' changed to 'categorical' due to lack of numerical variables.