pub struct SequentialDecisionPlan<T> { /* private fields */ }Expand description
Validated forcing and diagnostic policy for one ordered prediction chain.
Implementations§
Source§impl<T> SequentialDecisionPlan<T>
impl<T> SequentialDecisionPlan<T>
Sourcepub fn new(
directives: impl IntoIterator<Item = PredictionDirective<T>>,
retain_diagnostics: bool,
allow_fully_forced_tail_skip: bool,
) -> Result<Self, SequentialDecisionPlanError>
pub fn new( directives: impl IntoIterator<Item = PredictionDirective<T>>, retain_diagnostics: bool, allow_fully_forced_tail_skip: bool, ) -> Result<Self, SequentialDecisionPlanError>
Creates a non-empty ordered prediction plan.
Sourcepub fn mode(&self) -> SequentialDecisionMode
pub fn mode(&self) -> SequentialDecisionMode
Returns the aggregate forcing mode.
Sourcepub fn forcing_mask(&self) -> impl ExactSizeIterator<Item = bool> + '_
pub fn forcing_mask(&self) -> impl ExactSizeIterator<Item = bool> + '_
Returns a portable per-prediction forcing mask in decision order.
Sourcepub const fn retains_diagnostics(&self) -> bool
pub const fn retains_diagnostics(&self) -> bool
Returns whether diagnostic logits are retained for every executed decision.
Sourcepub const fn allows_fully_forced_tail_skip(&self) -> bool
pub const fn allows_fully_forced_tail_skip(&self) -> bool
Returns whether a proven fully forced tail may omit model calls.
Trait Implementations§
Source§impl<T: Clone> Clone for SequentialDecisionPlan<T>
impl<T: Clone> Clone for SequentialDecisionPlan<T>
Source§fn clone(&self) -> SequentialDecisionPlan<T>
fn clone(&self) -> SequentialDecisionPlan<T>
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<T: Debug> Debug for SequentialDecisionPlan<T>
impl<T: Debug> Debug for SequentialDecisionPlan<T>
impl<T: Eq> Eq for SequentialDecisionPlan<T>
Source§impl<T: PartialEq> PartialEq for SequentialDecisionPlan<T>
impl<T: PartialEq> PartialEq for SequentialDecisionPlan<T>
impl<T: PartialEq> StructuralPartialEq for SequentialDecisionPlan<T>
Auto Trait Implementations§
impl<T> Freeze for SequentialDecisionPlan<T>
impl<T> RefUnwindSafe for SequentialDecisionPlan<T>
impl<T> Send for SequentialDecisionPlan<T>
impl<T> Sync for SequentialDecisionPlan<T>
impl<T> Unpin for SequentialDecisionPlan<T>
impl<T> UnsafeUnpin for SequentialDecisionPlan<T>
impl<T> UnwindSafe for SequentialDecisionPlan<T>
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