evaluation-and-metrics
Evaluate DeTikZify outputs with metric wrappers, score generated TikZ programs, and reason about the repository's evaluation pipeline.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- evaluation-and-metrics
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Evaluate DeTikZify outputs with metric wrappers, score generated TikZ programs, and reason about the repository's evaluation pipeline.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/metrics.md1.2 KB
- 参考文档references/troubleshooting.md1.2 KB
- 参考文档references/workflows.md1.2 KB
03 SKILL.md 正文
Evaluation and Metrics
Use this sub-skill when the task is about examples/eval.py, metric wrappers, score computation, comparison against references, or the evaluation side of compiled TikZ generation.
Route away from this sub-skill when the task is mostly about producing one new program, launching the web UI, or changing training loops.
Fast Path
- Confirm the package and compile helpers are available:
python scripts/api_smoke.py python scripts/tikz_smoke.py - Read the metric reference before trying a scoring run:
references/metrics.md - Read the workflow reference if you need the model-input and caching behavior:
references/workflows.md
What This Sub-Skill Owns
- the
detikzify.evaluatemetric wrappers - score aggregation over generated and reference TikZ
ImageSimand the perceptual scoring pathClipScore,CrystalBLEU,DreamSim,KernelInceptionDistance, andTexEditDistance- redacted compile / rasterize metrics and token-efficiency style summaries
- the repo's evaluation pipeline and its compile-backed checks
Common Decisions
- Use
ImageSim/ model-based scoring when you want perceptual similarity. - Use the faster compiler-diagnostics path when you only need a cheap evaluation pass.
- Remember that some metrics are lazily imported and need optional dependencies.
- Keep the compile/rasterize path in mind: evaluation is not just string comparison.
- If the task asks about redacted outputs, inspect the compileable document and the redaction step separately.
Bundled References
- references/metrics.md: metric roles, lazy dependencies, and scoring behavior.
- references/workflows.md: the evaluation pipeline, model-input choices, cache behavior, and scoring stages.
- references/troubleshooting.md: missing metric deps, compile issues, and evaluation-specific failure modes.
Guardrails
- A metric import succeeding does not prove the model or render path works.
- Do not ignore compile failures when the score depends on compiled TikZ.
- Do not assume optional metric dependencies are present in a minimal install.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.