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

datasets-and-mcts

datasets-and-mcts

【数据与研究】Work with DeTikZify dataset helpers, local dataset fallbacks, Paper2Fig and SciCap builders, and the generic Monte Carlo tree-search engine.

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

技能说明

GitHub

name: datasets-and-mcts description: "Work with DeTikZify dataset helpers, local dataset fallbacks, Paper2Fig and SciCap builders, and the generic Monte Carlo tree-search engine." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Datasets and MCTS

Use this sub-skill when the task is about DeTikZify's dataset helpers, local dataset fallback behavior, Paper2Fig or SciCap builders, or the standalone Node / MonteCarlo tree-search engine.

Route away from this sub-skill when the main task is programmatic inference, training, or evaluation scoring. Those workflows depend on these helpers, but they have their own dedicated sub-skills.

Fast Path

  1. Run the safe MCTS helper if you only need to confirm the search engine imports correctly:
    python scripts/mcts_smoke.py
    
  2. Check the API snapshot if you need the loader and tree-search signatures:
    python scripts/api_smoke.py
    
  3. Read the data reference before using the dataset builders:
    references/data-and-mcts.md
    

What This Sub-Skill Owns

  • detikzify.dataset.load_dataset(...) and its local fallback behavior
  • the Paper2Fig and SciCap dataset builders
  • dataset feature shapes and field expectations for the figure datasets
  • the generic Node and MonteCarlo classes from detikzify.mcts
  • tree-search behavior such as simulate, expand, random_rollout, make_choice, and make_exploratory_choice

Common Decisions

  • Use the local dataset fallback when a package-relative dataset directory is present.
  • Use the dataset builder references to understand feature names before trying a conversion or load.
  • Use Node / MonteCarlo when you need generic search behavior rather than the inference-specific wrapped tree used by the pipeline.
  • Keep the state object compatible with the tree-printing helpers if you want debug output.

Bundled References

Related Helpers

Guardrails

  • Do not treat a successful dataset import as proof that the remote dataset or its artifacts are reachable.
  • Do not assume the generic Node state shape matches the inference pipeline's wrapped internal state.
  • Do not call the generic search engine a success if child_finder never adds children.
我的收藏