Skip to main content

ExternalOptimResult

Struct ExternalOptimResult 

Source
pub struct ExternalOptimResult {
Show 22 fields pub beta: Array1<f64>, pub lambdas: Array1<f64>, pub likelihood_family: LikelihoodSpec, pub likelihood_scale: LikelihoodScaleMetadata, pub log_likelihood_normalization: LogLikelihoodNormalization, pub log_likelihood: f64, pub standard_deviation: f64, pub iterations: usize, pub finalgrad_norm: f64, pub outer_converged: bool, pub pirls_status: PirlsStatus, pub deviance: f64, pub stable_penalty_term: f64, pub used_device: bool, pub max_abs_eta: f64, pub constraint_kkt: Option<ConstraintKktDiagnostics>, pub artifacts: FitArtifacts, pub inference: Option<FitInference>, pub reml_score: f64, pub fitted_link: FittedLinkState, pub outer_cost_evals: usize, pub inner_pirls_solves: usize,
}

Fields§

§beta: Array1<f64>§lambdas: Array1<f64>§likelihood_family: LikelihoodSpec§likelihood_scale: LikelihoodScaleMetadata§log_likelihood_normalization: LogLikelihoodNormalization§log_likelihood: f64§standard_deviation: f64

Residual scale on the response scale.

Contract: Gaussian identity models store the residual standard deviation sigma here. Non-Gaussian families keep the response-scale summary used by their explicit likelihood-scale metadata.

§iterations: usize§finalgrad_norm: f64§outer_converged: bool

True iff the outer optimizer reached a stationary point (gradient norm below tolerance), as reported by the optimizer itself. False when the run exhausted its iteration budget without reaching the gradient tolerance. Downstream consumers should NOT assume that a fit with outer_converged == false is unusable — it may still be the best basin reached given the budget — but they must not treat it as certified-converged either.

§pirls_status: PirlsStatus§deviance: f64§stable_penalty_term: f64

Stable quadratic penalty term βᵀSβ, including any solver ridge quadratic.

§used_device: bool§max_abs_eta: f64§constraint_kkt: Option<ConstraintKktDiagnostics>§artifacts: FitArtifacts§inference: Option<FitInference>§reml_score: f64

Complete REML/LAML objective value used for smoothing selection.

§fitted_link: FittedLinkState§outer_cost_evals: usize

Number of outer REML cost-only evaluations executed during the fit (the count the outer optimizer’s trust-region/line-search probes drive, each paying an inner P-IRLS solve). Surfaced for regression guards on outer work (#1575); not part of the statistical contract.

§inner_pirls_solves: usize

Number of actual full-n inner P-IRLS solves performed (cache-missing prepare_eval_bundlewithkey calls). This is the true cost driver the #1575 slowdown is measured in (“~150 outer cost evals each running a full n-sized P-IRLS”): unlike outer_cost_evals, it excludes single-slot cache hits and prior short-circuits and includes every solve done by the seed-grid prepass, screening, multistart, and finalize phases. Surfaced for a regression guard that pins the warm-start / parsimony-waiver / PSIS-optin economy (#1575); not part of the statistical contract.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DistributionExt for T
where T: ?Sized,

Source§

fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> T
where Self: Distribution<T>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V