Description Usage Arguments Value Examples
View source: R/plot_global_importance.R
Function plot.global_importance plots global importance measure based on Partial Dependence profiles.
1 2 |
x |
object returned from |
... |
other object returned from |
variables |
if not |
type |
a character. How variables shall be plotted? Either "bars" (default) or "lines". |
title |
the plot's title, by default |
a ggplot2 object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library("DALEX")
data(apartments)
library("randomForest")
apartments_rf_model <- randomForest(m2.price ~ construction.year + surface +
floor + no.rooms, data = apartments)
explainer_rf <- explain(apartments_rf_model, data = apartmentsTest[,2:5],
y = apartmentsTest$m2.price)
profiles <- model_profile(explainer_rf)
library("vivo")
measure <- global_variable_importance(profiles)
plot(measure)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.