data(titanic_imputed, package = "DALEX")
# fit a model
model_glm <- glm(survived ~ ., family = binomial, data = titanic_imputed)
# create an explainer
glm_audit <- audit(model_glm,
data = titanic_imputed,
y = titanic_imputed$survived)
# calculate score
score_one_minus_auprc(glm_audit)
Run the code above in your browser using DataLab