PhaseSeconds#
- class t3toolbox.backend.optimizers.PhaseSeconds#
One
newton_cghistory row’s window (NewtonTiming.window) split by phase, in seconds – or, asNewtonTiming.compile_seconds, jax’s compile wait inside each phase.None: the phase did not run on this row. The fields are in run order; withremainderthey tile the window.previous_callback– the previous row’s records, itscallbackand its history append (so a heavy display appears on the next row);Noneon 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 modegeom.curvature_precompute(withhessian='switch'every build is exact-mode, the Gauss-Newton phase’s included).Noneon a row that reuses the model (after a rejected trust-region trial);curvaturealso in Gauss-Newton mode. AProblemsubclass that overrideslocal_modelis timed whole: its build isframe, and the other four areNone.gradient– the misfit transposeΠ 𝒥ᵀ r(in exact mode, and withhessian='switch', it runs inside the build and is counted here), the misfit and regularization values, the gradient,‖g‖and the lift diagnostics;Noneasframe.reference– resolving the reference‖g0‖(g0_reference; the'cone'loop included): row 0 only.cg– the CG solve (underuse_jit, one compiled call);forms– the first trust-region radius, the slope, the descent fallback,pᵀHpand‖p‖;trial_retraction/trial_objective– every trial’s retraction / objective. All fourNoneon 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’sswitch_pKp);Noneon every other row.remainder– the window minus the phases above (the forcing term,‖x‖, the trust region’s data norm, Python bookkeeping); neverNone,>= 0up 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#