predict_diagnostics results

  • A list of class predict_diagnostics with the following elements:
    • Histograms summarizing the distribution of residuals for the entire training dataset and for the neighbours.
    • Kolmogorov-Smirnov test comparing the two distributions.
id_rf <- predict_diagnostics(explainer = explain_rf,
                             new_observation = henry,
                             neighbours = 100)
## Warning in ks.test.default(residuals_other, residuals_sel): p-value will be
## approximate in the presence of ties