Description Usage Arguments Examples
Generic print function for local surrogate explainers
1 2 |
x |
object of class local_surrogate_explainer |
... |
currently ignored |
1 2 3 4 5 6 7 8 9 10 11 12 | # Example based on apartments data from DALEX package.
library(DALEX)
library(randomForest)
library(localModel)
data('apartments')
mrf <- randomForest(m2.price ~., data = apartments, ntree = 50)
explainer <- explain(model = mrf,
data = apartments[, -1])
model_lok <- individual_surrogate_model(explainer, apartments[5, -1],
size = 500, seed = 17)
plot(model_lok)
model_lok
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.