pub struct GraphRefuter {
pub rel_delta_threshold: f64,
pub estimator: LinearAdjustmentAte,
}Expand description
Drop each adjustment covariate once and re-estimate (leave-one-out).
A large change flags sensitivity to the assumed adjustment set. When the
adjustment set is empty there is nothing to drop, so the check reports
informative = false rather than fabricating a comparison.
Historically named “graph refuter”; the report id is
adjustment.drop_covariate to match the actual check.
Fields§
§rel_delta_threshold: f64Pass if max |refuted_ate - original_ate| / |original_ate| is below this
threshold (relative change, so the verdict is invariant to outcome units).
estimator: LinearAdjustmentAteEstimator used for the refit (bootstrap disabled).
Implementations§
Source§impl GraphRefuter
impl GraphRefuter
Sourcepub fn new() -> Self
pub fn new() -> Self
Default threshold: 0.5 (the estimate may move by up to half its own magnitude).
Sourcepub fn refute(
&self,
problem: &RefutationProblem<'_>,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<RefutationReport, ValidationError>
pub fn refute( &self, problem: &RefutationProblem<'_>, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<RefutationReport, ValidationError>
Trait Implementations§
Source§impl Clone for GraphRefuter
impl Clone for GraphRefuter
Source§fn clone(&self) -> GraphRefuter
fn clone(&self) -> GraphRefuter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphRefuter
impl Debug for GraphRefuter
Source§impl Default for GraphRefuter
impl Default for GraphRefuter
Source§impl<'a> Validator<RefutationProblem<'a>> for GraphRefuter
impl<'a> Validator<RefutationProblem<'a>> for GraphRefuter
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Auto Trait Implementations§
impl Freeze for GraphRefuter
impl RefUnwindSafe for GraphRefuter
impl Send for GraphRefuter
impl Sync for GraphRefuter
impl Unpin for GraphRefuter
impl UnsafeUnpin for GraphRefuter
impl UnwindSafe for GraphRefuter
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
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> 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> ForeignBufferOwner for T
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