pub struct FactorialRuntime {
stage: Stage,
slots: Vec<FactorialSlot>,
config: FactorialConfig,
screening: ScreeningConfig,
queue: VecDeque<RuntimeWorkItem>,
stage_total: u32,
stage_completed: u32,
baseline_num_x10: u64,
baseline_iters: u64,
main_samples: Vec<MainSample>,
interaction_samples: Vec<InteractionSample>,
}Fields§
§stage: Stage§slots: Vec<FactorialSlot>§config: FactorialConfig§screening: ScreeningConfig§queue: VecDeque<RuntimeWorkItem>§stage_total: u32§stage_completed: u32§baseline_num_x10: u64§baseline_iters: u64§main_samples: Vec<MainSample>§interaction_samples: Vec<InteractionSample>Implementations§
Source§impl FactorialRuntime
impl FactorialRuntime
pub fn new( slots: Vec<FactorialSlot>, config: FactorialConfig, screening: ScreeningConfig, ) -> Self
pub fn total_permutations(&self) -> u64
pub fn is_screening_ready(&self) -> bool
pub fn next_iterations(&self) -> u32
pub fn next_work( &mut self, max_items: usize, next_item_id: &mut u64, ) -> Vec<RuntimeWorkItem>
pub fn ingest(&mut self, results: &[RuntimeWorkResult])
pub fn take_survivors(&self) -> RoaringBitmap
fn route(&mut self, r: &RuntimeWorkResult)
fn advance_stage(&mut self)
fn queue_main_effects(&mut self)
fn queue_interactions(&mut self)
fn materialize_main_effects( &self, baseline_mean: i32, ) -> Vec<MainEffectEstimate>
fn materialize_interactions(&self) -> Vec<InteractionEstimate>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FactorialRuntime
impl RefUnwindSafe for FactorialRuntime
impl Send for FactorialRuntime
impl Sync for FactorialRuntime
impl Unpin for FactorialRuntime
impl UnsafeUnpin for FactorialRuntime
impl UnwindSafe for FactorialRuntime
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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