본문으로 건너뛰기
cccskills
무료GitHub에 공개

fairlearn

Use Fairlearn to assess group fairness, compute disparity metrics, visualize subgroup performance, and mitigate unfairness with preprocessing, reductions, postprocessing, or adversarial learning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(36)

  • SKILL.md7.0 KB
  • references/fairness-framing.md4.9 KB
  • references/installation.md3.4 KB
  • references/repo-provenance.md2.3 KB
  • references/repo-routing-metadata.json311 B
  • references/troubleshooting.md4.8 KB
  • scripts/check_install.py4.3 KB
  • sub-skills/adversarial/references/backends-and-training.md5.9 KB
  • sub-skills/adversarial/references/troubleshooting.md2.4 KB
  • sub-skills/adversarial/scripts/smoke_torch_adversarial.py3.4 KB
  • sub-skills/adversarial/SKILL.md3.8 KB
  • sub-skills/assessment/references/metricframe-workflows.md4.7 KB
  • sub-skills/assessment/references/plotting-and-confidence-intervals.md4.0 KB
  • sub-skills/assessment/references/troubleshooting.md2.5 KB
  • sub-skills/assessment/scripts/smoke_assessment.py4.4 KB
  • sub-skills/assessment/SKILL.md4.3 KB
  • sub-skills/datasets/references/dataset-loaders.md3.4 KB
  • sub-skills/datasets/references/troubleshooting.md1.8 KB
  • sub-skills/datasets/scripts/preview_dataset_loaders.py2.6 KB
  • sub-skills/datasets/SKILL.md3.5 KB
  • sub-skills/installation/references/runtime-and-version-checks.md2.9 KB
  • sub-skills/installation/references/troubleshooting.md1.8 KB
  • sub-skills/installation/scripts/check_runtime.py606 B
  • sub-skills/installation/SKILL.md2.8 KB
  • sub-skills/postprocessing/references/threshold-optimizer-workflows.md4.4 KB
  • sub-skills/postprocessing/references/troubleshooting.md2.4 KB
  • sub-skills/postprocessing/scripts/smoke_threshold_optimizer.py3.2 KB
  • sub-skills/postprocessing/SKILL.md3.6 KB
  • sub-skills/preprocessing/references/troubleshooting.md2.2 KB
  • sub-skills/preprocessing/references/workflows.md3.8 KB
  • sub-skills/preprocessing/scripts/smoke_preprocessing.py2.1 KB
  • sub-skills/preprocessing/SKILL.md3.4 KB
  • sub-skills/reductions/references/troubleshooting.md2.3 KB
  • sub-skills/reductions/references/workflows-and-api.md4.8 KB
  • sub-skills/reductions/scripts/smoke_reductions.py2.5 KB
  • sub-skills/reductions/SKILL.md3.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Fairlearn

Use this repo skill when a task names fairlearn, asks for the Fairlearn Python package, or uses Fairlearn vocabulary such as MetricFrame, sensitive_features, demographic parity, equalized odds, CorrelationRemover, ExponentiatedGradient, GridSearch, ThresholdOptimizer, AdversarialFairnessClassifier, or Fairlearn dataset fetchers.

Fairlearn is API-first. This checkout does not define a Fairlearn-specific command-line interface, so route future agents to Python APIs, bundled references, and the smoke scripts in this skill.

Install and quick verification

For normal package use:

python -m pip install fairlearn

Add optional plotting and adversarial-learning dependencies only when the workflow needs them:

python -m pip install matplotlib        # group plots and threshold-optimizer plots
python -m pip install torch             # PyTorch adversarial backend
# TensorFlow is an alternative adversarial backend, but was not verified in this skill run.

From this skill directory, run the bundled root check when you need a safe import and optional-backend smoke test:

python scripts/check_install.py --include-optional

Read references/installation.md for version and optional dependency details, references/troubleshooting.md for cross-cutting failures, and references/repo-provenance.md before deciding whether this skill is stale for a newer Fairlearn checkout.

Route map

Task signalRead this sub-skillWhy
Group metrics, MetricFrame, selection_rate, demographic parity/equalized odds metrics, intersections, bootstrapped confidence intervals, model comparison plots, ROC-by-group plotssub-skills/assessment/SKILL.mdAssessment owns Fairlearn metrics, grouped outputs, CIs, and plotting helpers.
Remove linear correlation with sensitive columns, fair representation learning, CorrelationRemover, PrototypeRepresentationLearner, preprocessing before a downstream estimatorsub-skills/preprocessing/SKILL.mdPreprocessing owns transformations applied before model training.
Fairness-constrained training with sklearn-compatible estimators, ExponentiatedGradient, GridSearch, DemographicParity, EqualizedOdds, BoundedGroupLoss, sample_weight_namesub-skills/reductions/SKILL.mdReductions owns algorithms that reduce fairness constraints to weighted supervised-learning problems.
Adjust a trained predictor with group-specific thresholds, ThresholdOptimizer, plot_threshold_optimizer, prefit, predict_method, post-fit parity constraintssub-skills/postprocessing/SKILL.mdPostprocessing owns prediction-time threshold/interpolation mitigation.
Neural adversarial fairness, PyTorch or TensorFlow backends, callbacks, CUDA, AdversarialFairnessClassifier, AdversarialFairnessRegressorsub-skills/adversarial/SKILL.mdAdversarial workflows have backend-specific model, optimizer, and training pitfalls.
Built-in datasets, fetch_adult, fetch_acs_income, fetch_boston, return_X_y, as_frame, data_home, dataset fairness caveatssub-skills/datasets/SKILL.mdDataset loaders have network/cache behavior and dataset-specific schemas.
Installing, checking versions, optional extras, missing matplotlib/torch/tensorflow, show_versions, import/runtime diagnosticssub-skills/installation/SKILL.mdInstallation owns environment and dependency recovery paths.

Operating rules

  • Treat Fairlearn as a sociotechnical fairness toolkit, not an automated fairness oracle. Metric choices and mitigation goals must be tied to the user's problem context.
  • Keep row alignment explicit. X, y_true/y, predictions, and sensitive_features must describe the same samples in the same order.
  • Use sensitive_features for group definitions even when those columns are also present in X. Do not assume ignoring sensitive features is enough to assess or mitigate unfairness.
  • Start with assessment before mitigation unless the user already gives a constrained mitigation algorithm and metric target.
  • Prefer tiny synthetic smoke checks or cached data before networked dataset downloads. Fairlearn dataset fetchers use OpenML-style downloads and cache under a data home.
  • Make optional dependencies explicit. Plotting requires matplotlib; adversarial mitigation requires either PyTorch or TensorFlow. The PyTorch CPU path and optional CUDA acceleration were verified for this skill; TensorFlow was only documented as an alternative.
  • The generated references and scripts are self-contained. Do not instruct future agents to open this repo's original docs, tests, examples, or source scripts for normal operation.

Shared runtime files

Good first branch decisions

  • If the prompt says "is my model fair?", "compare groups", or names a metric, start with assessment.
  • If it asks to transform features before training, start with preprocessing.
  • If it asks to train a fair model from scratch with a sklearn estimator, start with reductions.
  • If it already has a fitted predictor or score function and wants fair thresholds, start with postprocessing.
  • If it names neural networks, PyTorch, TensorFlow, callbacks, or CUDA, start with adversarial.
  • If it asks for Adult, ACSIncome, Boston, diabetes, bank, or credit-card sample data, start with datasets.
  • If imports, missing extras, or version questions block the task, start with installation and root troubleshooting.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa

무료

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa-v2

무료

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

ab3dmot

무료

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

acme

무료

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고