Description Usage Arguments Examples
View source: R/print_profile.R
Prints Individual Variable Profiles
1 2 |
x |
an individual variable profile explainer produced with the 'individual_variable_profile' function |
... |
other arguments that will be passed to 'head()' |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | library("DALEX2")
## Not run:
library("randomForest")
set.seed(59)
apartments_rf_model <- randomForest(m2.price ~ construction.year + surface + floor +
no.rooms + district, data = apartments)
explainer_rf <- explain(apartments_rf_model,
data = apartments_test, y = apartments_test$m2.price)
apartment <- apartments_test[1:2,]
cp_rf <- individual_variable_profile(explainer_rf, apartment)
plot(cp_rf, color = "_ids_")
vips <- individual_variable_oscillations(cp_rf)
vips
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.