-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CP 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=True
parameter in the python implementation, which adds observation variable values to variable splits.The text was updated successfully, but these errors were encountered: