pub struct OffsetChannelResiduals {
pub exit: Array1<f64>,
pub entry: Array1<f64>,
pub derivative: Array1<f64>,
pub right: Array1<f64>,
}Expand description
Per-observation gradients of the unpenalized survival NLL with respect
to each additive offset channel, at a given β. See
WorkingModelSurvival::offset_channel_residuals for the algebra.
Contract: all four arrays have length n = number of observations.
Rows with non-positive sampleweight are 0 in every channel. The
derivative channel is 0 in all non-event rows. The right channel is
the interval upper-bound (R) η-offset sensitivity and is exactly 0 for
every NON-interval-censored model and every non-interval row of the latent
interval model (only the dedicated SurvInterval(L, R, event) latent fit
populates it); the baseline-θ chain rule contracts it against the
age_right-evaluated η-partial.
Fields§
§exit: Array1<f64>∂NLL/∂o_X: w·(exp(η_exit) − δ) per row.
entry: Array1<f64>∂NLL/∂o_E: −w·exp(η_entry) if row has a positive entry interval else 0.
derivative: Array1<f64>∂NLL/∂o_D: −w·δ / s (event-row only).
right: Array1<f64>∂NLL/∂o_R: interval upper-bound (R) η-offset sensitivity,
−w·∂(log-lik)/∂q_right. Nonzero only for interval-censored latent
rows; exactly 0 for every other channel/model.
Trait Implementations§
Source§impl Clone for OffsetChannelResiduals
impl Clone for OffsetChannelResiduals
Source§fn clone(&self) -> OffsetChannelResiduals
fn clone(&self) -> OffsetChannelResiduals
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 OffsetChannelResiduals
impl RefUnwindSafe for OffsetChannelResiduals
impl Send for OffsetChannelResiduals
impl Sync for OffsetChannelResiduals
impl Unpin for OffsetChannelResiduals
impl UnsafeUnpin for OffsetChannelResiduals
impl UnwindSafe for OffsetChannelResiduals
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.