maple.state.store.finish_run
- maple.state.store.finish_run(run_id: str, steps: int, total_reward: float, success: bool, terminated: bool, truncated: bool, video_path: str = None) None
Record run completion.
Updates a run record with final metrics and outcome information.
- Parameters:
run_id – Unique identifier of the run to update.
steps – Number of steps taken during the run.
total_reward – Cumulative reward achieved.
success – Whether the run was successful.
terminated – Whether the episode terminated naturally.
truncated – Whether the episode was truncated (e.g., timeout).
video_path – Optional path to recorded video of the run.