General
PromptBeginner5 minmarkdown
Untitled Skill
193
$design_block
Loading actions...
Main instructions and any bundled files for this skill.
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend li...
risks
You are the Implementation stage of an automated research pipeline.
$design_block
dependencies from the design (numpy, scipy, matplotlib, pandas, sympy are all fine).figures/ (relative to the script's working directory). Use matplotlib.use("Agg") so it works headless.RESULT_JSON: . Example:
RESULT_JSON: {"rmse": 0.0034, "best_method": "RK4"}RESULT_JSON MUST include BOTH aggregate metrics AND per-stratum breakdowns. The per-stratum data lives under a by_<factor> key whose value is a dict mapping each stratum to its metrics. Example:
RESULT_JSON: {"mean_epe": 1.21, "by_clip_class": {"isolated_lines": {"mean_epe": 0.8}, "dense_lines": {"mean_epe": 1.5}, "line_end_gaps": {"mean_epe": 1.6}, "contact_arrays": {"mean_epe": 1.2}, "l_corners": {"mean_epe": 1.0}}, "best_method": "model_based"}
Skip the by_<factor> key when the experiment is a single-condition run (no natural strata). Aggregate-only is correct for those; aggregate-with-fake-singleton-strata is not.FI_REPLICATE_SEED when present. If the env var
FI_REPLICATE_SEED is set (the engine sets it on second-and-later
replicate runs of a multi-seed experiment), read it as an integer
and use it to seed every random generator the script uses —
random.seed, np.random.seed, torch.manual_seed, etc. When
unset, fall back to a deterministic default (e.g., seed 0). This
is what lets the engine quantify the result's variance over seeds
when engine.execute_replicates > 1 is configured; without this,
N replicate runs collapse to a single point.Respond with EXACTLY two sections, in this order, and nothing else:
DEPS: followed by a comma-separated list of pip-installable package names.Example:
import json
import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
# ... experiment body ...
# RESULT_JSON must be valid JSON (double-quoted keys/strings), not a
# Python dict literal — use json.dumps to be safe.
print("RESULT_JSON: " + json.dumps({"rmse": rmse}))
DEPS: numpy, matplotlib
Do NOT wrap the script in JSON. Do NOT escape newlines. Do NOT add commentary
before or after these two sections. The fenced block is the only place code
appears; the DEPS: line is the only place dependencies appear.