Expand description
Iteration callbacks for progress, checkpoints, diagnostics, and image output. Hooks that observe or control iterative reconstruction.
Implement crate::callbacks::Callback for custom behavior, or use callbacks such as
crate::callbacks::CheckpointEvery,
DiagnosticRecorder, and
crate::callbacks::StopOnPlateau. Callbacks receive a borrowed
crate::callbacks::StepContext and return a crate::callbacks::CallbackAction to
continue or stop a run.
Structs§
- Checkpoint
Every - Writes resumable JSON checkpoints at a fixed iteration frequency.
- CsvLogger
- Streams universal iteration history to a CSV file.
- Progress
Logger - Prints iteration, objective, and elapsed-time progress to standard error.
- Save
Image Every - Periodically writes reconstructed object amplitude and wrapped phase PNG previews.
- Save
Pupil Every - Periodically writes recovered pupil amplitude and wrapped phase PNG previews.
- Save
Residuals Every - Periodically saves one signed intensity-residual PNG per measured frame.
- Step
Context - Borrowed reconstruction snapshot supplied to non-finish callback hooks.
- Stop
OnPlateau - Stops after a configured number of iterations without sufficient objective improvement.
Enums§
- Callback
Action - Control decision returned by a callback hook.
- Callback
Hook - Point in runner execution at which a callback can be invoked.
Traits§
- Callback
- Thread-sendable observer or early-stop controller for reconstruction execution.