DEPRECATED. Please refer to generic plot function for updated and improved interface. This function will be removed in the future and was left only to remain consistent with the examples given in https://arxiv.org/abs/1804.01955. For more, see NEWS and vignette.
plot_explanation(model, regr_plot_type = NULL, explained_instance = NULL)
model | object returned by mlr::train function. |
---|---|
regr_plot_type | Chr, "forestplot" or "waterfallplot" depending on which type of plot is to be created. if lm/glm model is used as interpretable approximation. |
explained_instance | Observation around which model was fitted. Needed only if waterfall plot is drawn. |
plot (ggplot2 or base)
# NOT RUN { # Forest plot for regression plot_explanation(fitted_explanation1, "forestplot", wine[5, ]) # Waterfall plot plot_explanation(fitted_explanation1, "waterfallplot", wine[5, ]) # Plot decision tree plot_explanation(fitted_explanation2) # }