Skip to content
Back to skills

Mitigation Algorithms

ASecurity

"Choose and run AIF360 legacy bias mitigation algorithms with

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
datagoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill mitigation-algorithms --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mitigation Algorithms?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mitigation Algorithms
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-mitigation-algorithms/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-mitigation-algorithms)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mitigation-algorithms
description: "Choose and run AIF360 legacy bias mitigation algorithms with
  correct lifecycle stage, data contracts, optional extras, and metric checks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# AIF360 Mitigation Algorithms

Use this sub-skill when a task asks for legacy `aif360.algorithms` mitigation with AIF360 datasets: preprocessing, inprocessing, postprocessing, deterministic reranking, optional extras, fit/transform/predict patterns, and fairness-metric validation.

## Start here

1. Pick the lifecycle stage and class in [algorithm-selection.md](references/algorithm-selection.md).
2. Follow end-to-end usage patterns in [workflows.md](references/workflows.md).
3. Check optional dependency status and install hints in [optional-algorithms.md](references/optional-algorithms.md).
4. Diagnose install/import, optional-extra, data/API, score, and workflow failures in [troubleshooting.md](references/troubleshooting.md).
5. For a base-safe smoke, run [reweighing_smoke.py](scripts/reweighing_smoke.py) with `--help` before `--json`.

## Route neighboring tasks

- Dataset construction, `BinaryLabelDataset` fields, group dictionaries, raw dataset wrappers, and metrics: [datasets-and-metrics](../datasets-and-metrics/SKILL.md).
- `aif360.sklearn` estimators, pandas protected-attribute indexes, scorers, and sklearn pipelines: [sklearn-interface](../sklearn-interface/SKILL.md).
- MDSS/FACTS subgroup detection or metric text/JSON explainers: [detectors-and-explainers](../detectors-and-explainers/SKILL.md).

## Operating rules

- Select mitigation by where it acts: preprocessing modifies data before model training; inprocessing trains a mitigated model; postprocessing adjusts already-produced predictions; reranking reorders scored candidates.
- Keep true labels, predicted labels, `scores`, protected attributes, favorable/unfavorable labels, and privileged/unprivileged group values aligned across every dataset copy.
- Validate with AIF360 metrics before and after mitigation; a class name is not evidence that fairness improved.
- Optional extras were intentionally not installed in the construction environment. Mark optional workflows as optional/unverified until the user's runtime installs the named extra and passes a small smoke.

Files in this skill

  • SKILL.md2.3 KB
  • references/algorithm-selection.md8.7 KB
  • references/optional-algorithms.md4.8 KB
  • references/troubleshooting.md7.5 KB
  • references/workflows.md6.1 KB
  • scripts/reweighing_smoke.py5.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.