View source: R/ms_merge_observations.R
ms_merge_observations | R Documentation |
This function merges local explanations from multiple modelStudio
objects into one.
ms_merge_observations(...)
... |
|
An object of the r2d3, htmlwidget, modelStudio
class.
The input object is implemented in DALEX
Feature Importance, Ceteris Paribus, Partial Dependence and Accumulated Dependence explanations are implemented in ingredients
Break Down and Shapley Values explanations are implemented in iBreakDown
Vignettes: modelStudio - R & Python examples and modelStudio - perks and features
library("DALEX") library("modelStudio") # fit a model model_happiness <- glm(score ~., data = happiness_train) # create an explainer for the model explainer_happiness <- explain(model_happiness, data = happiness_test, y = happiness_test$score) # make studios for the model ms1 <- modelStudio(explainer_happiness, N = 200, B = 5) ms2 <- modelStudio(explainer_happiness, new_observation = head(happiness_test, 3), N = 200, B = 5) # merge ms <- ms_merge_observations(ms1, ms2) ms
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.