pub enum JointNewtonTerminalReason {
CycleBudget,
FullyRejectedExactFixedPoint {
consecutive_cycles: usize,
joint_trust_radius: f64,
rejection_counts: [usize; 4],
},
FullyRejectedAtTrustRegionFloor {
consecutive_cycles: usize,
joint_trust_radius: f64,
rejection_counts: [usize; 4],
},
SlowGeometricRate {
rate_per_cycle: f64,
window_cycles: usize,
projected_cycles_to_tolerance: usize,
residual: f64,
residual_tol: f64,
ray: Option<RayRestoration>,
},
StalledOnDescendingRay {
residual: f64,
residual_tol: f64,
cycles: usize,
ray: RayRestoration,
},
}Variants§
CycleBudget
FullyRejectedExactFixedPoint
FullyRejectedAtTrustRegionFloor
SlowGeometricRate
The residual was still contracting — every step accepted, the model trusted — but at a geometric rate too slow to reach tolerance within the projection cap. The solve was descending, not stuck: on the #2695 1569 pair this is the scale coefficient walking the σ→0 ray, an objective with no finite minimizer along that direction at that ρ, and the outer needs to read it as under-penalization rather than as a failed seed.
Fields
ray: Option<RayRestoration>The block whose penalty is too weak to close the ray, and the
strength at which it would: None when no block’s penalty opposes
the accepted step (an unpenalized ray, which no ρ can close).
StalledOnDescendingRay
The solve left on a residual-stall or divergence guard while its last accepted step was still descending a direction no block’s penalty closes (gam#2695).
Read exactly like Self::SlowGeometricRate’s ray: the seed is
under-penalized, not failed, and the outer restores it rather than
discarding it. It is a SEPARATE reason because these exits certify
nothing about a rate — the residual was flat or growing, not
contracting slowly — and reporting them as a slow rate would claim a
contraction that was not measured. On the #2695 1569 pair seeds 0-3
leave here (early-exit non-converged (divergence/stall guard)) with
every step accepted at a good model ratio, the objective still falling
and ‖β‖∞ still growing, which is the ray this names.
Trait Implementations§
Source§impl Clone for JointNewtonTerminalReason
impl Clone for JointNewtonTerminalReason
Source§fn clone(&self) -> JointNewtonTerminalReason
fn clone(&self) -> JointNewtonTerminalReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for JointNewtonTerminalReason
Source§impl Debug for JointNewtonTerminalReason
impl Debug for JointNewtonTerminalReason
Source§impl Display for JointNewtonTerminalReason
impl Display for JointNewtonTerminalReason
impl StructuralPartialEq for JointNewtonTerminalReason
Auto Trait Implementations§
impl Freeze for JointNewtonTerminalReason
impl RefUnwindSafe for JointNewtonTerminalReason
impl Send for JointNewtonTerminalReason
impl Sync for JointNewtonTerminalReason
impl Unpin for JointNewtonTerminalReason
impl UnsafeUnpin for JointNewtonTerminalReason
impl UnwindSafe for JointNewtonTerminalReason
Blanket Implementations§
impl<T> Boilerplate for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.