pub struct DeterministicPhaseConfig {
pub warmup_steps: usize,
pub full_steps: usize,
pub predict_steps: usize,
pub correct_every: usize,
pub history_window: usize,
pub adaptive_phases: bool,
pub loss_threshold: f32,
pub max_grad_norm: f32,
}Expand description
Configuration for deterministic phase training.
Fields§
§warmup_steps: usizeWarmup steps before prediction begins.
full_steps: usizeFull gradient steps per cycle (after warmup).
predict_steps: usizePrediction steps per cycle.
correct_every: usizeCorrection frequency during prediction phase.
history_window: usizeHistory window for model fitting.
adaptive_phases: boolWhether to adaptively adjust phase lengths.
loss_threshold: f32Loss threshold for triggering more full steps.
max_grad_norm: f32Maximum gradient norm for clipping.
Implementations§
Source§impl DeterministicPhaseConfig
impl DeterministicPhaseConfig
Sourcepub const fn with_warmup_steps(self, steps: usize) -> DeterministicPhaseConfig
pub const fn with_warmup_steps(self, steps: usize) -> DeterministicPhaseConfig
Builder: Set warmup steps.
Sourcepub const fn with_full_steps(self, steps: usize) -> DeterministicPhaseConfig
pub const fn with_full_steps(self, steps: usize) -> DeterministicPhaseConfig
Builder: Set full steps per cycle.
Sourcepub const fn with_predict_steps(self, steps: usize) -> DeterministicPhaseConfig
pub const fn with_predict_steps(self, steps: usize) -> DeterministicPhaseConfig
Builder: Set prediction steps per cycle.
Sourcepub const fn with_correct_every(self, every: usize) -> DeterministicPhaseConfig
pub const fn with_correct_every(self, every: usize) -> DeterministicPhaseConfig
Builder: Set correction frequency.
Trait Implementations§
Source§impl Clone for DeterministicPhaseConfig
impl Clone for DeterministicPhaseConfig
Source§fn clone(&self) -> DeterministicPhaseConfig
fn clone(&self) -> DeterministicPhaseConfig
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 Debug for DeterministicPhaseConfig
impl Debug for DeterministicPhaseConfig
Source§impl Default for DeterministicPhaseConfig
impl Default for DeterministicPhaseConfig
Source§fn default() -> DeterministicPhaseConfig
fn default() -> DeterministicPhaseConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeterministicPhaseConfig
impl RefUnwindSafe for DeterministicPhaseConfig
impl Send for DeterministicPhaseConfig
impl Sync for DeterministicPhaseConfig
impl Unpin for DeterministicPhaseConfig
impl UnwindSafe for DeterministicPhaseConfig
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