PhaseSeconds#

class t3toolbox.backend.optimizers.PhaseSeconds#

One newton_cg history row’s window (NewtonTiming.window) split by phase, in seconds – or, as NewtonTiming.compile_seconds, jax’s compile wait inside each phase. None: the phase did not run on this row. The fields are in run order; with remainder they tile the window.

  • previous_callback – the previous row’s records, its callback and its history append (so a heavy display appears on the next row); None on row 0.

  • frame, sweep, companion, residual, curvature – the local model’s build: geom.frame (or the start frame’s structure check), kind.precompute, geom.precompute, the residual, and in exact mode geom.curvature_precompute (with hessian='switch' every build is exact-mode, the Gauss-Newton phase’s included). None on a row that reuses the model (after a rejected trust-region trial); curvature also in Gauss-Newton mode. A Problem subclass that overrides local_model is timed whole: its build is frame, and the other four are None.

  • gradient – the misfit transpose Π 𝒥ᵀ r (in exact mode, and with hessian='switch', it runs inside the build and is counted here), the misfit and regularization values, the gradient, ‖g‖ and the lift diagnostics; None as frame.

  • reference – resolving the reference ‖g0‖ (g0_reference; the 'cone' loop included): row 0 only.

  • cg – the CG solve (under use_jit, one compiled call); forms – the first trust-region radius, the slope, the descent fallback, pᵀHp and ‖p‖; trial_retraction / trial_objective – every trial’s retraction / objective. All four None on the converged row.

  • tracking – hessian='switch': the tracking product ⟨p, Lᵀ K_N L p⟩ of the point’s exact build, on a tracked Gauss-Newton-phase row (NewtonInfo’s switch_pKp); None on every other row.

  • remainder – the window minus the phases above (the forcing term, ‖x‖, the trust region’s data norm, Python bookkeeping); never None, >= 0 up to rounding.

previous_callback: t3toolbox.backend.common.typ.Optional[float]#
frame: t3toolbox.backend.common.typ.Optional[float]#
sweep: t3toolbox.backend.common.typ.Optional[float]#
companion: t3toolbox.backend.common.typ.Optional[float]#
residual: t3toolbox.backend.common.typ.Optional[float]#
curvature: t3toolbox.backend.common.typ.Optional[float]#
gradient: t3toolbox.backend.common.typ.Optional[float]#
reference: t3toolbox.backend.common.typ.Optional[float]#
cg: t3toolbox.backend.common.typ.Optional[float]#
forms: t3toolbox.backend.common.typ.Optional[float]#
trial_retraction: t3toolbox.backend.common.typ.Optional[float]#
trial_objective: t3toolbox.backend.common.typ.Optional[float]#
tracking: t3toolbox.backend.common.typ.Optional[float]#
remainder: float#