print.local_surrogate_explainer

0th

Percentile

Generic print function for local surrogate explainers

Generic print function for local surrogate explainers

Usage
# S3 method for local_surrogate_explainer
print(x, ...)
Arguments
x

object of class local_surrogate_explainer

...

currently ignored

Aliases
  • print.local_surrogate_explainer
Examples
# NOT RUN {
# 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

# }
Documentation reproduced from package localModel, version 0.3.11, License: GPL

Community examples

Looks like there are no examples yet.