on_iteration_end#
- FileLogger.on_iteration_end(project, iteration: int, params: ndarray, fom_value: float, gradient: ndarray | None = None, **kwargs) None#
Record one iteration-completion row in the data file.
The row uses an
ITERprefix (no leading indent) so iteration boundaries stand out visually from the indented per-eval rows. Whenlog_gradientsis enabled and a gradient is supplied, an additional# Gradient: ...row follows with the gradient norm and component vector.- Parameters:
- project
Project The optimization project.
- iteration
int Iteration number.
- params
np.ndarray Parameter values at the end of this iteration.
- fom_value
float FOM value at the end of this iteration.
- gradient
np.ndarray,optional Gradient at the end of this iteration; emitted on its own row when
log_gradientsis enabled.- **kwargs
Additional information (currently unused).
- project