report_fairness {mlr3fairness} | R Documentation |
Create a Fairness Report
Description
Creates a new rmarkdown template with a skeleton of reported metrics and visualizations. Uses the awesome markdown template created by Chris Garbin from Github.
Usage
report_fairness(
filename = "fairness_report.Rmd",
objects,
edit = FALSE,
check_objects = FALSE,
build = FALSE
)
Arguments
filename |
( |
objects |
(
|
edit |
( |
check_objects |
( |
build |
( |
Value
Invisibly returns the path to the newly created file(s).
See Also
Other fairness_reports:
report_datasheet()
,
report_modelcard()
Examples
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))