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
- 参考文档references/components-and-plugins.md8.7 KB
- 参考文档references/transforms-and-aggregation.md6.3 KB
- 参考文档references/troubleshooting.md7.4 KB
- 脚本scripts/list_scoring_components.py5.5 KB
- 脚本scripts/validate_scoring_config.py12.3 KB
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
- Use
run_type = "scoring"for a standalone scoring run and provide a[parameters]block withsmiles_fileand optionaloutput_csv. - Build a
[scoring]block withtype = "geometric_mean"ortype = "arithmetic_mean", optionalparallel, optionaluse_pumas, and one or more[[scoring.component]]blocks. - Keep each component block in this shape:
[[scoring.component]],[scoring.component.ComponentName], then one or more[[scoring.component.ComponentName.endpoint]]tables withname, optionalweight, optionalparams.*, and optionaltransform.*. - 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 installedreinvent_plugins.componentsnamespace packages and list discoveredcomp_*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
QEDwithout a transform because it already returns a 0-1 value. - Use
MolecularWeightwithdouble_sigmoidfor a preferred mass window such as 200-500 Da. - Use
TanimotoSimilarityfor new configs; treatTanimotoDistanceas a backward-compatible deprecated alias. - Use
custom_alertsfor must-fail SMARTS filters and do not rely on itsweightfor optimization. - Use
geometric_meanwhen every objective must remain acceptable; usearithmetic_meanwhen compensation between objectives is acceptable.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).