인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
데이터 및 연구 · SKILL.md

datasets

datasets

Use Fairlearn built-in dataset loaders, schema notes, cache controls, and dataset fairness warnings.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: datasets description: "Use Fairlearn built-in dataset loaders, schema notes, cache controls, and dataset fairness warnings." disable-model-invocation: true metadata: disco-role: operating license: MIT

Fairlearn datasets

Use this sub-skill when the task asks for Fairlearn built-in datasets, OpenML-backed loaders, dataset schemas, fetch_adult, fetch_acs_income, fetch_bank_marketing, fetch_boston, fetch_credit_card, fetch_diabetes_hospital, as_frame, return_X_y, data_home, cache, ACS state filtering, or DataFairnessWarning.

Quick workflow

  1. Decide whether the task needs a real dataset download or only loader/schema guidance.
  2. Choose the smallest relevant loader and set data_home explicitly in restricted or reproducible environments.
  3. Use as_frame=True for pandas DataFrames with dtypes and feature names; use return_X_y=True for direct (X, y) workflows.
  4. Keep dataset fairness warnings visible, especially for Boston housing.
  5. Route to ../assessment/ or a mitigation sub-skill after the dataset is loaded and preprocessed.

Read these references

Core APIs to recognize

  • fetch_adult(*, cache=True, data_home=None, as_frame=True, return_X_y=False)
  • fetch_acs_income(*, cache=True, data_home=None, as_frame=True, return_X_y=False, states=None)
  • fetch_bank_marketing(*, cache=True, data_home=None, as_frame=True, return_X_y=False)
  • fetch_boston(*, cache=True, data_home=None, as_frame=True, return_X_y=False, warn=True)
  • fetch_credit_card(*, cache=True, data_home=None, as_frame=True, return_X_y=False)
  • fetch_diabetes_hospital(*, as_frame=True, cache=True, data_home=None, return_X_y=False)

Boundary rules

  • This sub-skill owns loader behavior and dataset caveats. It does not own model training, assessment metrics, or mitigation algorithms.
  • Use ../assessment/ after obtaining predictions or scores.
  • Use ../preprocessing/, ../reductions/, ../postprocessing/, or ../adversarial/ for mitigation choices.
  • Use ../installation/ if the issue is a package import rather than loader behavior.

Operating rules

  • Dataset loaders can perform network downloads. Ask before downloading when network, disk, or privacy constraints are unclear.
  • Default cache location is a .fairlearn-data directory under the user's home unless data_home is set.
  • Prefer as_frame=True for Fairlearn workflows because column names make sensitive-feature selection auditable.
  • fetch_boston(warn=True) intentionally raises DataFairnessWarning; do not suppress it in reports unless the user explicitly asks and understands why.
  • fetch_acs_income(states=...) expects two-letter state abbreviations; PR is accepted for Puerto Rico.

Fast validation

No-network signature preview:

python sub-skills/datasets/scripts/preview_dataset_loaders.py

Optional single-loader download check:

python sub-skills/datasets/scripts/preview_dataset_loaders.py --download adult --data-home /tmp/fairlearn-data
저장한 Skills