pub struct GaussianVectorLikelihood {
pub precision: Array1<f64>,
pub factor: Option<Array2<f64>>,
pub row_weights: Option<Array1<f64>>,
}Expand description
Gaussian vector likelihood with identity link.
log p(Y|η) = −½ Σ_n w_n · rᵀ W r where r = Y_n − η_n and W is the
per-output precision matrix. For Isotropic / Diagonal W = diag(prec);
for LowRank it is W = diag(prec) + F · Fᵀ, with F carried alongside
the diagonal here.
(Up to the constant log-determinant of the noise covariance, dropped here because it does not depend on β or the latent t; the determinant is accounted for in the REML score, not the inner likelihood.)
Fields§
§precision: Array1<f64>Per-output diagonal precision (length M). For Isotropic / Diagonal /
LowRank this is the diagonal piece of the precision matrix
(1/σ_m² for Diagonal/Isotropic; diag for LowRank).
factor: Option<Array2<f64>>Optional dense rank-r factor F of size (M, r) such that the full
per-row precision is diag(precision) + F · Fᵀ. None for the
Isotropic / Diagonal cases.
row_weights: Option<Array1<f64>>Optional row weights (length N), or None for uniform.
Implementations§
Source§impl GaussianVectorLikelihood
impl GaussianVectorLikelihood
pub fn from_target( target: &VectorResponseTarget, ) -> Result<Self, EstimationError>
Trait Implementations§
Source§impl Clone for GaussianVectorLikelihood
impl Clone for GaussianVectorLikelihood
Source§fn clone(&self) -> GaussianVectorLikelihood
fn clone(&self) -> GaussianVectorLikelihood
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GaussianVectorLikelihood
impl Debug for GaussianVectorLikelihood
Source§impl VectorLikelihood for GaussianVectorLikelihood
impl VectorLikelihood for GaussianVectorLikelihood
Source§fn log_lik(&self, eta: ArrayView2<'_, f64>, y: ArrayView2<'_, f64>) -> f64
fn log_lik(&self, eta: ArrayView2<'_, f64>, y: ArrayView2<'_, f64>) -> f64
Source§fn grad_eta(
&self,
eta: ArrayView2<'_, f64>,
y: ArrayView2<'_, f64>,
) -> Array2<f64>
fn grad_eta( &self, eta: ArrayView2<'_, f64>, y: ArrayView2<'_, f64>, ) -> Array2<f64>
Source§fn hess_diag(
&self,
eta: ArrayView2<'_, f64>,
y: ArrayView2<'_, f64>,
) -> Array2<f64>
fn hess_diag( &self, eta: ArrayView2<'_, f64>, y: ArrayView2<'_, f64>, ) -> Array2<f64>
solver/arrow_schur.rs.Source§fn hess_block(
&self,
eta: ArrayView2<'_, f64>,
y: ArrayView2<'_, f64>,
) -> Array3<f64>
fn hess_block( &self, eta: ArrayView2<'_, f64>, y: ArrayView2<'_, f64>, ) -> Array3<f64>
Auto Trait Implementations§
impl Freeze for GaussianVectorLikelihood
impl RefUnwindSafe for GaussianVectorLikelihood
impl Send for GaussianVectorLikelihood
impl Sync for GaussianVectorLikelihood
impl Unpin for GaussianVectorLikelihood
impl UnsafeUnpin for GaussianVectorLikelihood
impl UnwindSafe for GaussianVectorLikelihood
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.