技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
snorkel【数据与研究】Operate Snorkel weak-supervision, data transform, classification, and slicing workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when the task is about the installed Snorkel Python package:
Do not use this skill for generic PyTorch training, general Spark cluster administration, spaCy pipeline training unrelated to Snorkel preprocessors, cleanlab label-quality auditing, or source-repository maintenance unless the user explicitly names Snorkel APIs.
Snorkel requires Python >=3.11.
pip install snorkel
python scripts/check_snorkel_install.py
Optional paths:
python scripts/check_snorkel_install.py --check-spacy-model
python scripts/check_snorkel_install.py --check-spark
Read references/installation-and-optional-dependencies.md before adding Dask, spaCy, Spark, or TensorBoard-related dependencies.
| User intent or signal | Read next | Why |
|---|---|---|
LabelingFunction, labeling_function, LFApplier, PandasLFApplier, LabelModel, weak labels, label matrix L, LF coverage/overlap/conflict, majority voters | sub-skills/labeling/SKILL.md | Owns programmatic labels and label-model workflows. |
Mapper, lambda_mapper, preprocessor, SpacyPreprocessor, TransformationFunction, TFApplier, augmentation policy, synthetic label matrix | sub-skills/data-transforms/SKILL.md | Owns data-point transforms that support labeling, slicing, and augmentation. |
DictDataset, DictDataLoader, Operation, Task, MultitaskClassifier, Trainer, Scorer, metrics, checkpointing, TensorBoard, soft-label training | sub-skills/classification/SKILL.md | Owns discriminative model, trainer, logging, and evaluation APIs. |
SlicingFunction, SFApplier, slice_dataframe, add_slice_labels, convert_to_slice_tasks, SliceAwareClassifier, score_slices | sub-skills/slicing/SKILL.md | Owns slice creation, slice labels, and slice-aware modeling. |
labeling to define LFs and produce an L matrix.labeling to inspect LFAnalysis and fit LabelModel or a voter.labeling to filter unlabeled rows.classification to build DictDataset / DictDataLoader with hard or probabilistic labels.classification to train/evaluate a MultitaskClassifier or Trainer.data-transforms for SpacyPreprocessor details and model setup.labeling for NLPLabelingFunction or spark_nlp_labeling_function.slicing for NLPSlicingFunction or nlp_slicing_function.slicing to create SFs and an S recarray.classification to understand the base Task, module pool, and tensor dataset.slicing to create slice labels and SliceAwareClassifier dataloaders.classification or slicing scoring depending on whether the user wants overall metrics or slice-specific metrics.references/repo-provenance.mdreferences/repo-routing-metadata.jsonreferences/installation-and-optional-dependencies.mdreferences/troubleshooting.mdscripts/check_snorkel_install.pyStart with the smallest safe check:
-1 as the abstain label across weak-label and metric helpers.LabelModel requires at least three labeling functions and a label matrix consistent with the configured cardinality.DictDataset labels must be torch.Tensor values.SliceAwareClassifier and SliceCombinerModule are binary-only in this version.