Description Usage Arguments Value Examples
View source: R/process_lime_plots.R
Process LIME plots to make them usable in an interactive map
1 | process_lime_plots(explanation)
|
explanation |
DataFrame containing LIME explained data |
list containing processed plots
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# build and train a machine learning model
task <- makeClassifTask(id = "model", data = data.train, target = "label")
lrn <- makeLearner("classif.lda", predict.type = "prob")
mod <- train(lrn, task)
# prepare explainable data
explainable_data <- prepare_explainable_data(data.test, mod, coordinates.df)
# process lime plots to make them suitable for leaflet
processed_plots <- process_lime_plots(explainable_data$explanation)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.