pub struct Pliv { /* private fields */ }Expand description
PLIV estimator with the partialling-out score
ψ = (Y − ℓ(X) − θ(D − r(X)))·(Z − m(X)).
ml_l learns E[Y | X], ml_m learns E[Z | X], ml_r learns E[D | X].
Implementations§
Source§impl Pliv
impl Pliv
pub fn new( ml_l: impl Regressor + 'static, ml_m: impl Regressor + 'static, ml_r: impl Regressor + 'static, ) -> Self
pub fn from_boxed( ml_l: Box<dyn Regressor>, ml_m: Box<dyn Regressor>, ml_r: Box<dyn Regressor>, ) -> Self
Trait Implementations§
Source§impl LinearScoreModel for Pliv
impl LinearScoreModel for Pliv
Source§fn validate(&self, data: &DmlData) -> Result<()>
fn validate(&self, data: &DmlData) -> Result<()>
Reject data the model cannot handle (called once before fitting).
Source§fn estimate_score(
&self,
input: &ScoreInput<'_>,
folds: &[Fold],
) -> Result<ScoreEstimate>
fn estimate_score( &self, input: &ScoreInput<'_>, folds: &[Fold], ) -> Result<ScoreEstimate>
Cross-fit the nuisances on
folds and return the score elements.Auto Trait Implementations§
impl !RefUnwindSafe for Pliv
impl !UnwindSafe for Pliv
impl Freeze for Pliv
impl Send for Pliv
impl Sync for Pliv
impl Unpin for Pliv
impl UnsafeUnpin for Pliv
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