PhaseSeconds ============ .. py:class:: t3toolbox.backend.optimizers.PhaseSeconds One ``newton_cg`` history row's window (:py:attr:`NewtonTiming.window`) split by phase, in seconds -- or, as :py:attr:`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 (:py:class:`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. .. py:attribute:: previous_callback :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: frame :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: sweep :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: companion :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: residual :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: curvature :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: gradient :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: reference :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: cg :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: forms :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: trial_retraction :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: trial_objective :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: tracking :type: t3toolbox.backend.common.typ.Optional[float] .. py:attribute:: remainder :type: float