Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The goal of this PR is to implement individual fairness notions in
mlr3fairness
.Scope:
Implement a flexible measure
IndividualFairness
that allows measuring individual fairness.Functionality should have the following arguments:
dX
: Distance metric in X-space (difference between individuals).dY
: Distance metric in Y-space (difference between observations).L
: Lipschitz constant. Relates distances in X and Y.cols
: Which columns inX
should be used to computedX
?comparison
: What comparator to use, see belowThe current implementation compares to all other data points, not sure if this is reasonable.
Implement visualizations, that e.g. show
most unfairly treated
individuals etc.Perhaps one could also use
iml
to understand sources of unfairness.Open Questions:
x_i
, who do we compare to? All others / comparator point / clusters?How would we select comparator points?
How should we aggregate this?
benchmarks
?Required Research
Is there anything we can do to help with assessing that?
Other:
classif
andregr
for now.Relevant Literature: