pub struct MultiBlockAloDiagnostics {
pub eta_tilde: Vec<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>,
pub leverage: ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>,
pub alo_variance: Vec<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>,
pub predictive_variance: Vec<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>,
pub cook_distance: ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>,
}Expand description
Diagnostics returned by multi-block ALO.
Fields§
§eta_tilde: Vec<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>Corrected linear predictors η̃^{(-i)} for each observation. Outer length = n_obs, inner length = n_coordinates (B).
leverage: ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>Per-observation leverage tr(H_ii) where H_ii is the B×B hat-matrix block.
alo_variance: Vec<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>Per-observation ALO variance diagonals: for each observation i, Var(Δη_i) ≈ A_i (I - W_i A_i)⁻¹ C_i (I - A_i W_i)⁻¹ A_iᵀ, where C_i is the score covariance (not assumed equal to W_i). Outer length = n_obs, inner length = n_coordinates (B) containing the diagonal entries of the variance matrix.
predictive_variance: Vec<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>Model-based posterior predictive variance of each coordinate at each
observation: diag(A_i) = x_{d,i}ᵀ [H⁻¹] x_{d,i} (unit dispersion; the
caller scales by φ where applicable). Unlike Self::alo_variance —
which for a single deleted row with the rank-1 self-score covariance
collapses EXACTLY to the squared deletion correction Δη² and is
therefore an influence magnitude, not an uncertainty — this is the
genuine posterior uncertainty of the fitted coordinate, and the
principled scale for judging how far an exact LOO refit (which also
reselects smoothing on n−1 rows) may legitimately sit from the
fixed-smoothing ALO point (#2301).
Outer length = n_obs, inner length = n_coordinates (B).
cook_distance: ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>Cook-type ALO influence: D_i = Δη_iᵀ C_i Δη_i. Length = n_obs.
Trait Implementations§
Source§impl Clone for MultiBlockAloDiagnostics
impl Clone for MultiBlockAloDiagnostics
Source§fn clone(&self) -> MultiBlockAloDiagnostics
fn clone(&self) -> MultiBlockAloDiagnostics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for MultiBlockAloDiagnostics
impl RefUnwindSafe for MultiBlockAloDiagnostics
impl Send for MultiBlockAloDiagnostics
impl Sync for MultiBlockAloDiagnostics
impl Unpin for MultiBlockAloDiagnostics
impl UnsafeUnpin for MultiBlockAloDiagnostics
impl UnwindSafe for MultiBlockAloDiagnostics
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.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.