espnet3.bin.atlas.stages.propose_trial.ProposeTrialStage
Less than 1 minute
espnet3.bin.atlas.stages.propose_trial.ProposeTrialStage
class espnet3.bin.atlas.stages.propose_trial.ProposeTrialStage
Bases: BaseStage
Create a new Trial from the agent’s proposed config patch.
run(context) → StageResult
Ask the agent for a new config patch, resolve it, and save it as a trial.
Reserves (or reuses) a provisional trial, asks the agent to propose a training config patch, sanitizes the patch against the search space, rejects it as "duplicate" if an in-progress or past trial already has the same hyperparameter patch or resolves to the same effective training config, then writes the trial’s resolved training/inference/metrics configs and metadata.
- Parameters:context – The node run’s
StageContext. - Returns:
status="success"(or"write_files"/"implement_code"for an architecture-search trial needing extra stages first) once a trial is proposed;status="no_budget"if the study’s budget is exhausted;status="duplicate"/"failure"if no valid proposal could be produced (including when the agent call itself fails). - Return type:StageResult
Example
>>> result = ProposeTrialStage().run(stage_context)
>>> result.status
'success'study_lock_name : str | None = 'study_controller'
Name of the study-wide lock file to hold while running, or None to run without a lock.
