技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
evaluator-pipelines【数据与研究】Use evaluate.evaluator and EvaluationSuite to evaluate model pipelines on datasets across supported NLP, vision, and audio tasks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to evaluate a model, model id, prebuilt transformers.Pipeline, or compatible callable against a dataset using evaluate.evaluator(...), or to run a group of evaluator subtasks with EvaluationSuite.
references/evaluator-workflows.md for end-to-end evaluator and suite patterns, including preloaded datasets, non-default columns, devices, bootstrap, label mappings, and subtasks.references/api-reference.md for supported tasks, default metrics, task-specific columns, common compute(...) arguments, and SubTask/EvaluationSuite signatures.references/troubleshooting.md before running expensive or network-dependent evaluations, especially when optional model backends, dataset columns, devices, or bootstrap are involved.scripts/inspect_evaluator_tasks.py to print the installed evaluator task registry without downloading models or datasets.metric.compute(...), route to ../module-computation/.evaluate.load(...) module discovery and loading behavior, route to ../module-loading/.../hub-and-cli/.from evaluate import evaluator
clf = evaluator("text-classification")
results = clf.compute(
model_or_pipeline=pipe_or_model_id,
data=dataset,
metric="accuracy",
input_column="review_text",
label_column="gold_label",
label_mapping={"NEGATIVE": 0, "POSITIVE": 1},
device=-1,
)
compute(...) returns metric scores plus pipeline timing keys such as total_time_in_seconds, samples_per_second, and latency_in_seconds. Pass strategy="bootstrap" only when the extra scipy bootstrap cost is acceptable.