Skip to content

mlr3fairness

0.4.0

Fairness Auditing and Debiasing for 'mlr3'

2packages depend
35.4Kdownloads / year
92.6%test coverage
13/13checks pass

Overview

About
Maintained by Florian PfistererFirst published 2022-05-124 releasesCRAN page ↗GitHub ↗

Integrates fairness auditing and bias mitigation methods for the 'mlr3' ecosystem. This includes fairness metrics, reporting tools, visualizations and bias mitigation techniques such as "Reweighing" described in 'Kamiran, Calders' (2012) doi:10.1007/s10115-011-0463-8 and "Equalized Odds" described in 'Hardt et al.' (2016) https://papers.nips.cc/paper/2016/file/9d2682367c3935defcb1f9e247a97c0d-Paper.pdf. Integration with 'mlr3' allows for auditing of ML models as well as convenient joint tuning of machine learning algorithms and debiasing methods.

Install

Health

CRAN checks
13OK
Slowest check: 9.3 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.43
92.6%
Coverage · measured lines
100%
Documentation · exports
11
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-17
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-05-10
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,337 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
46%
References docs
31%

Downloads

35.4K
CRAN downloads in the past year
Rank #2,459 · ~97/day · ~3K/mo
Daily download trend is not available in this view yet.
1.4K30 days
9K90 days
35.4K1 year
Compare downloads with other packages →
Also on121 r2u30 autocran

Repository

Repository
15Stars
2Forks
9Open issues
1Open PRs
1Releases
351Commits
8Contributors
machine-learningfairnessmlr3rr-package
License LGPL-3.0 · 351 commits · Last activity 2026-04-24 · 0% stars, 30d

Stars over time

2024-06-26 · 142026-07-07 · 15

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/mlr-org/mlr3fairness on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (3)
lintrEditorConfigRStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
26 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

Code Composition
R 3,873 (55%)Rd 2,631 (37%)Vignettes 576 (8%)
Code characteristics
Object systems
S312R614
Cyclomatic complexity
1.0 median / 5 max
Test cases
71 / 0.43 per code line

Test coverage

Line coverage

93%

Expression

92.6%

Tests / Examples

92.6% / 71% ex

Functions

42 13 exported

Complexity

1.9 avg / 5 max

Call network

42 nodes / 14 edges

Loading call graph…

Lowest coverage

42 functions
FunctionCycloCoverage
compute_metrics exp50%
fairness_tensor.ResampleResult10%
tabular20%
fairness_prediction_density.PredictionClassif563%
report_fairness exp369%
assert_pta_task480%

People & History

People (3)
Maintainer (1)
Maintainer, Author
Authors (3)
Maintainer, Author
Author
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.0Latest
    2025-06-24 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.3.2
    2023-05-05 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.3.1
    2022-08-16 · diff ↗
  • 0.3.0
    2022-05-12
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-05-12
Total releases
4 / 4 yrs
License
LGPL-3 OSI
Minimum R
≥ 3.4.0
Bundled data
226 KB / 3 files
Download size
540 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →