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

datasets-and-examples

datasets-and-examples

【数据与研究】Use Flower Datasets and example app patterns without reopening the source repo.

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

技能说明

GitHub

name: datasets-and-examples description: "Use Flower Datasets and example app patterns without reopening the source repo." metadata: disco-role: operating disable-model-invocation: true license: Apache 2.0

Flower Datasets and Examples

Use this sub-skill when the user needs Flower Datasets, partitioning workflows, or example-project wiring patterns.

Use for

  • FederatedDataset, partitioners, preprocessors, and visualization
  • local CSV/JSON/image/audio and in-memory data flows
  • flwr-datasets create for IID demo partitions on disk
  • example app catalogs and dependency variants from examples/*/pyproject.toml

Stay out of

  • Flower core app authoring beyond example layout clues
  • deployment admin and strategy internals

Route

  1. Prefer FederatedDataset for Hugging Face Hub data.
  2. For local or in-memory data, build a datasets.Dataset first and assign it to a partitioner directly.
  3. Use IidPartitioner for even splits, DirichletPartitioner for label skew, and PathologicalPartitioner for exact class-count constraints.
  4. Use Divider or Merger to reshape splits before partitioning.
  5. Use plot_label_distributions or plot_comparison_label_distribution to inspect heterogeneity.
  6. Use scripts/catalog_examples.py to compare example dependency stacks and tool.flwr.app wiring.

References

  • references/api-reference.md
  • references/workflows.md
  • references/troubleshooting.md

Helpers

  • scripts/check_flwr_datasets.py
  • scripts/catalog_examples.py
我的收藏