Skip to content

group predict_profile plot by id AND label #236

@hbaniecki

Description

@hbaniecki

Let's support multiple models out of the box.

library(DALEX)

model1 <- glm(survived~., data = titanic_imputed, family = "binomial")
exp1 <- explain(model1, data = titanic_imputed)
pp1 <- predict_profile(exp1, titanic_imputed[1,])

library(ranger)
model2 <- ranger(survived~., data = titanic_imputed, probability = T) 
exp2 <- explain(model2, titanic_imputed)
pp2 <- predict_profile(exp2, titanic_imputed[1,])

plot(pp1, pp2) # maybe should work automatically 

plot(pp1, pp2, color = "_label_") # like this

Metadata

Metadata

Assignees

Labels

Python 🐍Related to PythonR 🐳Related to Rfeature 💡New feature or enhancement request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions