pub struct CateFit { /* private fields */ }Expand description
A fitted CATE model.
Implementations§
Source§impl CateFit
impl CateFit
Sourcepub fn effect(&self, x: ArrayView2<'_, f64>) -> Result<Array1<f64>>
pub fn effect(&self, x: ArrayView2<'_, f64>) -> Result<Array1<f64>>
Estimated effects τ̂(x) for each row of x.
Sourcepub fn average_effect(&self, x: ArrayView2<'_, f64>) -> Result<f64>
pub fn average_effect(&self, x: ArrayView2<'_, f64>) -> Result<f64>
Average of τ̂(x) over the rows of x.
Sourcepub fn pseudo_outcomes(&self) -> Option<ArrayView1<'_, f64>>
pub fn pseudo_outcomes(&self) -> Option<ArrayView1<'_, f64>>
DR-learner only: the cross-fitted AIPW pseudo-outcomes φᵢ.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CateFit
impl !UnwindSafe for CateFit
impl Freeze for CateFit
impl Send for CateFit
impl Sync for CateFit
impl Unpin for CateFit
impl UnsafeUnpin for CateFit
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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 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> ⓘ
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