library("mlr3")
report_file = tempfile()
task = tsk("compas")
learner = lrn("classif.rpart", predict_type = "prob")
rr = resample(task, learner, rsmp("cv", folds = 3L))
report_fairness(report_file, list(task = task, resample_result = rr))
Run the code above in your browser using DataLab