pub struct DeterministicPredictionConfig {
pub warmup_steps: usize,
pub history_window: usize,
pub prediction_horizon: usize,
pub history_decay: f32,
pub residual_threshold: f32,
}Expand description
Configuration for deterministic gradient prediction.
Fields§
§warmup_steps: usizeMinimum steps of full training before prediction begins.
history_window: usizeNumber of history steps to use for fitting.
prediction_horizon: usizeSteps to predict before correction.
history_decay: f32Exponential decay for older history (1.0 = no decay).
residual_threshold: f32Threshold for residual magnitude to trigger early correction.
Implementations§
Source§impl DeterministicPredictionConfig
impl DeterministicPredictionConfig
Sourcepub const fn with_warmup_steps(
self,
steps: usize,
) -> DeterministicPredictionConfig
pub const fn with_warmup_steps( self, steps: usize, ) -> DeterministicPredictionConfig
Builder: Set warmup steps.
Sourcepub const fn with_history_window(
self,
window: usize,
) -> DeterministicPredictionConfig
pub const fn with_history_window( self, window: usize, ) -> DeterministicPredictionConfig
Builder: Set history window.
Sourcepub const fn with_prediction_horizon(
self,
horizon: usize,
) -> DeterministicPredictionConfig
pub const fn with_prediction_horizon( self, horizon: usize, ) -> DeterministicPredictionConfig
Builder: Set prediction horizon.
Sourcepub const fn with_history_decay(
self,
decay: f32,
) -> DeterministicPredictionConfig
pub const fn with_history_decay( self, decay: f32, ) -> DeterministicPredictionConfig
Builder: Set history decay.
Trait Implementations§
Source§impl Clone for DeterministicPredictionConfig
impl Clone for DeterministicPredictionConfig
Source§fn clone(&self) -> DeterministicPredictionConfig
fn clone(&self) -> DeterministicPredictionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DeterministicPredictionConfig
impl Default for DeterministicPredictionConfig
Source§fn default() -> DeterministicPredictionConfig
fn default() -> DeterministicPredictionConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeterministicPredictionConfig
impl RefUnwindSafe for DeterministicPredictionConfig
impl Send for DeterministicPredictionConfig
impl Sync for DeterministicPredictionConfig
impl Unpin for DeterministicPredictionConfig
impl UnwindSafe for DeterministicPredictionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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