pub enum AloError {
InvalidInput {
reason: String,
},
WeightInvalid {
reason: String,
},
DesignDegenerate {
reason: String,
},
InfluenceMatrixFailed {
condition_number: f64,
},
LooComputationFailed {
reason: String,
},
}Expand description
Typed error variants for the ALO (approximate leave-one-out) diagnostics module.
Public entry points continue to return Result<_, EstimationError>; this
enum is materialized at leaf sites and converted at the boundary via
From<AloError> for EstimationError so error text remains byte-identical
to the previous EstimationError::InvalidInput(format!(...)) /
ModelIsIllConditioned { ... } output.
Variants§
InvalidInput
Caller-supplied configuration is structurally invalid: dimension mismatch, non-finite inputs that are not weights/response, missing PIRLS / geometry artifacts, or out-of-range scalar parameters.
WeightInvalid
IRLS weights or working response contain a non-finite entry, or the working response itself is invalid.
DesignDegenerate
The dense design matrix required for ALO could not be materialized from the underlying PIRLS artifact (e.g. sparse-only export).
InfluenceMatrixFailed
The penalized Hessian factorization failed, or downstream diagnostics produced NaN values that indicate the influence matrix is unusable.
LooComputationFailed
Per-observation ALO computation produced a non-finite value (variance, denominator, or corrected η̃) at convergence.
Trait Implementations§
Source§impl Error for AloError
impl Error for AloError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<AloError> for EstimationError
impl From<AloError> for EstimationError
Source§fn from(err: AloError) -> EstimationError
fn from(err: AloError) -> EstimationError
Auto Trait Implementations§
impl Freeze for AloError
impl RefUnwindSafe for AloError
impl Send for AloError
impl Sync for AloError
impl Unpin for AloError
impl UnsafeUnpin for AloError
impl UnwindSafe for AloError
Blanket Implementations§
impl<T> Allocation 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,
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.