Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCP observation original value isn't always apparent in variable splits #124
Comments
|
default behaviour is not changed! Example before/after
|
|
This yields an error cp1 <- ceteris_paribus(explain_titanic_rf, titanic_imputed[c(1, 2,3, 198),], grid_points=5, variable_splits_with_obs = TRUE)
plot(cp1) +
show_observations(cp1, variable_type='categorical')Also, can we add cp1 <- ceteris_paribus(explain_titanic_rf, titanic_imputed[c(1,2,3, 198),], grid_points=5)
plot(cp1, variable_type='categorical') |
|
IMHO the
should not work, as |
|
I just noticed that neither version of CP profiles (bars, profiles, steps) uses drwhy colors, thanks |
|
My bad, this works (besides the drwhy palette): library(DALEX)
library(randomForest)
library(ingredients)
model_titanic_rf <- randomForest(survived ~ gender + age + fare,
data = na.omit(titanic_imputed))
explain_titanic_rf <- explain(model_titanic_rf,
data = titanic_imputed[,c(1,2,5)],
y = titanic_imputed[,8],
verbose = FALSE)
cp1 <- ceteris_paribus(explain_titanic_rf, titanic_imputed[c(1,2,3, 198),], grid_points=5)
plot(cp1, variable_type='categorical') Thanks |
Added the
include_new_observation=Trueparameter in the python implementation, which adds observation variable values to variable splits.