reinvent_plot_rl_history
Plot optimization history for REINVENT4 RL runs using job ID or CSV path. Inspect plottable columns, then generate PNG charts for standard and extra metrics.
Instructions
Inspect columns or generate optimisation history plots for a REINVENT4 RL run.
Works mid-run and post-run — plots whatever step data exists at call time. Provide job_id (looks up workdir from registry) OR csv_path directly. job_id takes precedence if both are given.
TWO-CALL PROTOCOL: Call 1 — extra_columns=None (inspect mode): Returns column categorisation (standard, plottable, metadata). No plots are generated. Agent presents plottable_columns to user.
Call 2 — extra_columns=[...] (plot mode): Generates PNGs for Agent, Prior, Target, Score (always) + extra_columns. Saves to output_dir (default: /plots/). Returns paths of all saved PNG files.
Args: job_id: Job ID from reinvent_register_job or reinvent_reinforcement_learning csv_path: Direct path to a stage CSV file (for ad-hoc / finished run analysis) extra_columns: None for inspect; list of column names to plot beyond the standard 4 output_dir: Where to save PNGs (default: /plots/ or /plots/)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | ||
| csv_path | No | ||
| output_dir | No | ||
| extra_columns | No |