Fair-scoring

Latest version: v0.2.1

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.1

Bugfixes
- *Getting started* in the docs still used the old ``bias_eo`` object. Now it shows the correct name ``bias_metric_eo``.

0.2.0

Added
Plots
- Calibration plot `fairscoring.plots.plot_groupwise_score_calibration` to visualize calibration bias.
- Cumulative distribution plot `fairscoring.plots.plot_groupwise_cdfs` and the difference `fairscoring.plots.plot plot_cdf_diffs`.
to visualize independence, equal opportunity and predictive equality bias.
- Custom colormaps in `fairscoring.plots.colors`.

Bias Result Objects
- New result type `IntegralBiasResult` now contain the cdfs of the group distributions.

Changed
- Submodules of `fairscoring.metrics` are now public.
- The class `TwoGroupMixin` is now called `TwoGroupMetric`.
This allows for a more consistent naming scheme.
- The default bias metrics where renamed from ``bias_``-prefix to a ``bias_metric_``-prefix.
This was done, because the old names like ``bias_eo`` are ideal names for variables holding the result of a bias computation.
- Extended documentation now available at [readthedocs](https://fair-scoring.readthedocs.io/en/stable/).

Deleted
- The independence bias has no default instance `fairscoring.metrics.bias_ind` anymore.
The reason is, that independence bias is no recommended bias metric.

0.1.1

Added
- Parameter `prefer_high_scores` to allow for both types of scores.
This allowed for shorter dataset handling of the COMPAS examples.
- Preparation to host docs on readthedocs.

Fixed

- Show correct project-link on [pypi.org](https://pypi.org/project/fair-scoring/)
- `README.md` shows the correct installation command

0.1.0

Added
- Bias Metric Classes for
- Calibration: `fairscoring.metrics.CalibrationMetric`
- Wasserstein Distance: `fairscoring.metrics.WassersteinMetric`
- ROC-base Metrics: `fairscoring.metrics.roc.ROCBiasMetric`
- Default Bias Metrics for
- Equal Opportunity: `fairscoring.metrics.bias_eo`
- Predictive Equality: `fairscoring.metrics.bias_pe`
- Calibration: `fairscoring.metrics.bias_cal`
- Independence: `fairscoring.metrics.bias_ind`
- ROC: `fairscoring.metrics.roc.bias_roc`
- xROC: `fairscoring.metrics.roc.bias_xroc`
- Experiments on
- Adult Dataset
- COMPAS Dataset
- German Credit Risk Dataset
- Tests for compatibility with results in the publication
- COMPAS Dataset

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.