界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

installation

installation

【效率与协作】Install, inspect, and troubleshoot Fairlearn runtimes, optional plotting/adversarial dependencies, and version diagnostics.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: installation description: "Install, inspect, and troubleshoot Fairlearn runtimes, optional plotting/adversarial dependencies, and version diagnostics." disable-model-invocation: true metadata: disco-role: operating license: MIT

Fairlearn installation

Use this sub-skill when the task is about installing Fairlearn, confirming imports, inspecting versions, optional dependencies, plotting extras, PyTorch/TensorFlow adversarial backends, show_versions, missing dependency errors, or package-runtime diagnostics.

Quick workflow

  1. Determine whether the user is using a released package, a local checkout, or a prepared environment.
  2. Install the smallest dependency set needed for the requested workflow.
  3. Run the root check script or the wrapper in this sub-skill.
  4. If optional plotting or adversarial backends are absent, decide whether the requested workflow actually requires them before installing.
  5. Route back to the workflow-owning sub-skill after imports and optional dependencies are resolved.

Read these references

Core facts

  • Package name: fairlearn.
  • Python requirement in the inspected source: >=3.11.
  • Core dependencies: narwhals, numpy, pandas, scikit-learn, and scipy.
  • Public version check: import fairlearn; print(fairlearn.__version__).
  • Environment report: fairlearn.show_versions().
  • No Fairlearn-specific CLI entry points were found in the inspected source.

Optional dependency ownership

DependencyOwned workflowFirst route
matplotlibassessment and postprocessing plots../assessment/ or ../postprocessing/
torchPyTorch adversarial backend../adversarial/
tensorflow / kerasTensorFlow adversarial backend../adversarial/ with explicit unverified-backend note
OpenML/network/cachedataset loaders../datasets/

Fast validation

From this skill directory:

python sub-skills/installation/scripts/check_runtime.py --include-optional

Or from the root skill directory:

python scripts/check_install.py --include-optional

If the check passes but a workflow still fails, switch to that workflow's troubleshooting reference.

我的收藏