Description Usage Arguments Examples
View source: R/create_shimex.R
creates files for Shiny App and runs Shiny.
1 2 3 4 |
explainer |
explainer created with function 'DALEX::explain()' |
new_obs |
a new observation with columns that corresponds to variables used in the model |
data |
— |
selected_variables |
a vector of variable names that will be shown in input panel, |
selected_explainers |
a vector of explainers, that will be shown in the app. Possible choices: c('CeterisParibus', 'BreakDown', 'Shap', 'Shap_iml', 'Shap_shapper', 'LocalModel', 'Lime', 'Lime_iml') The default value are explainers implemented by MI2 DataLab. |
main_dir |
string, path where shiny files should be stored. |
delete |
logical value, if TRUE shiny files are deleted on exit of function. |
... |
other parameters. |
1 2 3 4 5 6 7 | ## Not run:
library(randomForest)
model_rm <- randomForest(life_length ~., data = DALEX::dragons, ntree = 200)
explainer <- DALEX::explain(model_rm)
create_shimex(explainer, DALEX::dragons[1, ])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.