AGENT SKILL

scoring

Build and troubleshoot REINVENT4 scoring configurations, components, transforms, aggregation, and scoring plugins.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
scoring
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Build and troubleshoot REINVENT4 scoring configurations, components, transforms, aggregation, and scoring plugins.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Scoring

Use this sub-skill when a task mentions scoring.toml, run_type = "scoring", scoring components, transforms, aggregation, comp_* plugin files, @add_tag, QED, MolecularWeight, TanimotoSimilarity, TanimotoDistance, OpenEye ROCS, Chemprop, ExternalProcess, or REST scoring.

Scope

This skill covers scoring-only jobs and scoring-function design that will later be reused by staged learning. For model sampling setup, use the sibling sampling skill. For transfer-learning or staged-learning orchestration, use the learning skill and return here only for [scoring] or [stage.scoring] blocks. For SMILES preprocessing, use the data-pipeline skill.

Start Here

  1. Use run_type = "scoring" for a standalone scoring run and provide a [parameters] block with smiles_file and optional output_csv.
  2. Build a [scoring] block with type = "geometric_mean" or type = "arithmetic_mean", optional parallel, optional use_pumas, and one or more [[scoring.component]] blocks.
  3. Keep each component block in this shape: [[scoring.component]], [scoring.component.ComponentName], then one or more [[scoring.component.ComponentName.endpoint]] tables with name, optional weight, optional params.*, and optional transform.*.
  4. Prefer a scoring-only run on representative SMILES before using the same scoring function in RL.

References

  • references/components-and-plugins.md: component block shapes, common built-ins, external components, and custom plugin discovery.
  • references/transforms-and-aggregation.md: transform choice, endpoint weights, geometric/arithmetic aggregation, filters, and penalties.
  • references/troubleshooting.md: config parsing, plugin import, optional dependency, external service, and transform-debugging failures.

Bundled Helpers

  • scripts/validate_scoring_config.py: parse a TOML scoring config and summarize scoring blocks, components, endpoints, params, transforms, and likely structural issues without running scoring.
  • scripts/list_scoring_components.py: inspect installed reinvent_plugins.components namespace packages and list discovered comp_* modules/classes without executing a scoring job.

Run each helper with --help first. Both helpers are read-only; they inspect installed Python packages and config files but do not launch reinvent, score molecules, call external services, or load model checkpoints intentionally.

Practical Defaults

  • Use QED without a transform because it already returns a 0-1 value.
  • Use MolecularWeight with double_sigmoid for a preferred mass window such as 200-500 Da.
  • Use TanimotoSimilarity for new configs; treat TanimotoDistance as a backward-compatible deprecated alias.
  • Use custom_alerts for must-fail SMARTS filters and do not rely on its weight for optimization.
  • Use geometric_mean when every objective must remain acceptable; use arithmetic_mean when compensation between objectives is acceptable.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351