powered by
Creates a `lime` explainer using the processed training data stored in the `fastml` object and returns feature explanations for new observations.
explain_lime(object, n_features = 5, n_labels = 1, ...)
An object produced by `lime::explain`.
A `fastml` object.
Number of features to show in the explanation. Default 5.
Number of labels to explain (classification only). Default 1.
Additional arguments passed to `lime::explain`.
if (FALSE) { data(iris) iris <- iris[iris$Species != "setosa", ] iris$Species <- factor(iris$Species) model <- fastml(data = iris, label = "Species") explain_lime(model) }
Run the code above in your browser using DataLab