espnet3.bin.atlas.stages.accept_or_reject.AcceptOrRejectStage
Less than 1 minute
espnet3.bin.atlas.stages.accept_or_reject.AcceptOrRejectStage
class espnet3.bin.atlas.stages.accept_or_reject.AcceptOrRejectStage
Bases: BaseStage
Compare the latest score with the best known score.
run(context) → StageResult
Accept the trial as the new best, or reject it, and write decision.md.
The first trial, or one improving on the current best (per metric.mode), is accepted and recorded as the study’s best; otherwise it is rejected. Either way updates the trial’s status/decision and writes a short decision summary.
- Parameters:context – The node run’s
StageContext; must have a current trial with ascorealready set. - Returns:
status="accepted"orstatus="rejected". - Return type:StageResult
Example
>>> result = AcceptOrRejectStage().run(stage_context)
>>> result.status
'accepted'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.
