espnet3.bin.atlas.core.models.Trial
espnet3.bin.atlas.core.models.Trial
class espnet3.bin.atlas.core.models.Trial(trial_id: str, study_id: str, status: ~typing.Literal['proposing', 'proposed', 'running', 'completed', 'failed', 'timeout', 'needs_resume', 'accepted', 'rejected', 'cancelled', 'early_stopped'], config_patch: dict[str, ~typing.Any], resolved_config_path: ~pathlib.Path | None, rationale: str, expected_effect: str, risk: str, score: float | None, score_name: str | None, decision: str | None, parent_trial_id: str | None, attempt_count: int, created_at: str, updated_at: str, recovery_active: bool = False, metrics: dict[str, ~typing.Any] = <factory>, reflection: str = '', next_suggestion: str = '', codex_thread_id: str | None = None, extra_stages: list[str] = <factory>)
Bases: object
One proposed/run hyperparameter or architecture experiment.
- Parameters:
- trial_id – Unique id for this trial within its study.
- study_id – Study this trial belongs to.
- status – Lifecycle status, e.g.
"proposing","running","accepted","rejected","failed". - config_patch – Dotted-key overrides applied on top of the base training config to produce this trial’s config.
- resolved_config_path – Path to the fully resolved config written for this trial, or
Nonebefore it is generated. - rationale – Agent-provided reasoning for proposing this change.
- expected_effect – Agent-provided expectation of the change’s effect.
- risk – Agent-provided assessment of the change’s risk.
- score – The trial’s extracted metric value, or
Nonebeforecollect_resultruns. - score_name – Name of the metric
scoreis, orNone. - decision –
"accept"/"reject"decision fromaccept_or_reject, orNonebefore it runs. - parent_trial_id – Trial this one was proposed from, or
Nonefor the first trial. - attempt_count – Number of run attempts made for this trial so far.
- created_at – ISO-8601 UTC timestamp the trial was proposed.
- updated_at – ISO-8601 UTC timestamp of the last field change.
- recovery_active – Whether a debug_trial recovery attempt is in progress for this trial.
- metrics – Full extracted metrics dict (
scoreis one entry of it). - reflection – Agent-written reflection on this trial’s outcome.
- next_suggestion – Agent-written suggestion for the next trial.
- codex_thread_id – Resumable agent thread id tied to this trial, or
None. - extra_stages – Names of extra stages this trial still needs to run (for applications with per-trial stage variation).
attempt_count : int
codex_thread_id : str | None = None
config_patch : dict[str, Any]
created_at : str
decision : str | None
expected_effect : str
extra_stages : list[str]
metrics : dict[str, Any]
next_suggestion : str = ''
parent_trial_id : str | None
rationale : str
recovery_active : bool = False
reflection : str = ''
resolved_config_path : Path | None
risk : str
score : float | None
score_name : str | None
status : Literal['proposing', 'proposed', 'running', 'completed', 'failed', 'timeout', 'needs_resume', 'accepted', 'rejected', 'cancelled', 'early_stopped']
study_id : str
trial_id : str
updated_at : str
