Skip to content
Back to skills

Sklearn Interface

ASecurity

"Use AIF360's preferred sklearn-compatible pandas API for datasets,

  • 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 sklearn-interface --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sklearn Interface?

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

Security grade badge for Sklearn Interface
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sklearn-interface/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sklearn-interface)

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: sklearn-interface
description: "Use AIF360's preferred sklearn-compatible pandas API for datasets,
  fairness metrics, scorers, estimators, and pipeline caveats."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# AIF360 sklearn Interface

Use this sub-skill when the task is best handled through the preferred `aif360.sklearn` API: pandas `DataFrame`/`Series` inputs, protected attributes stored in indexes, sklearn-compatible fairness metrics/scorers, estimators, meta-estimators, and pipeline caveats.

## Fast routing

- Dataset loading and conversion: start with [API reference](references/api-reference.md#dataset-functions) and [workflows](references/workflows.md#standardize-or-fetch-pandas-data).
- Group, individual, MDSS-score, and scorer functions: use [API reference](references/api-reference.md#metric-functions) and [workflows](references/workflows.md#compute-metrics-and-sklearn-scorers).
- `Reweighing`, postprocessors, and `PostProcessingMeta`: use [workflows](references/workflows.md#estimator-and-meta-estimator-patterns) and [optional estimators](references/optional-estimators.md).
- Missing extras, dropped indexes, scorer surprises, fetch/cache failures, or postprocessing errors: use [troubleshooting](references/troubleshooting.md).
- Quick self-check of the base metrics path: run [scripts/sklearn_metric_smoke.py](scripts/sklearn_metric_smoke.py) from this sub-skill directory.

## Boundaries and handoffs

- Route legacy `BinaryLabelDataset`, `StructuredDataset`, `StandardDataset`, and legacy metric-class tasks to the sibling `datasets-and-metrics` sub-skill.
- Route legacy `aif360.algorithms` preprocessing/inprocessing/postprocessing class workflows to the sibling `mitigation-algorithms` sub-skill.
- Route MDSS subgroup scans, FACTS counterfactual subgroup rules, and metric text/JSON explainers to the sibling `detectors-and-explainers` sub-skill. This sub-skill only covers `aif360.sklearn.metrics.mdss_bias_score` as a metric helper.
- Do not rely on source notebooks, tests, or external raw-data locations at runtime. Use the bundled references and scripts here, plus user-provided data or cache settings.

## Safety and verification status

- Base CPU imports and in-memory sklearn metric workflows are supported by this sub-skill.
- Dataset fetchers can require network access or a warmed cache; do not use them in no-network smoke checks.
- Optional extras were not installed in the verified base environment. Treat extra-gated estimators and `ot_distance` as optional/unverified until the matching extra is installed and checked.

Files in this skill

  • SKILL.md2.6 KB
  • references/api-reference.md10.6 KB
  • references/optional-estimators.md6.9 KB
  • references/troubleshooting.md9.6 KB
  • references/workflows.md9.3 KB
  • scripts/sklearn_metric_smoke.py7.9 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.