process_lime_plots: Process LIME plots

Description Usage Arguments Value Examples

View source: R/process_lime_plots.R

Description

Process LIME plots to make them usable in an interactive map

Usage

1
process_lime_plots(explanation)

Arguments

explanation

DataFrame containing LIME explained data

Value

list containing processed plots

Examples

 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)

boyanangelov/sdmexplain documentation built on Nov. 26, 2019, 2:56 a.m.