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