pub struct RealtimeAdaptationConfig<T>{Show 15 fields
pub loss_detector: DriftDetectorConfig<T>,
pub grad_detector: DriftDetectorConfig<T>,
pub initial_lr: T,
pub lr_min: T,
pub lr_max: T,
pub lr_decay: T,
pub lr_growth: T,
pub initial_momentum: T,
pub mom_min: T,
pub mom_max: T,
pub mom_damp: T,
pub plateau_patience: usize,
pub plateau_tol: T,
pub cooldown_steps: usize,
pub grad_norm_ceiling_factor: T,
}Expand description
Configuration for the RealtimeAdaptationController.
Fields§
§loss_detector: DriftDetectorConfig<T>Detector configuration for the loss stream.
grad_detector: DriftDetectorConfig<T>Detector configuration for the gradient-norm stream.
initial_lr: TInitial learning rate.
lr_min: TLower clamp on the learning rate.
lr_max: TUpper clamp on the learning rate.
lr_decay: TMultiplicative factor < 1 applied to decrease the learning rate.
lr_growth: TMultiplicative factor > 1 applied to increase the learning rate.
initial_momentum: TInitial momentum.
mom_min: TLower clamp on momentum.
mom_max: TUpper clamp on momentum.
mom_damp: TMultiplicative factor <= 1 used to damp momentum on divergence.
plateau_patience: usizeNumber of consecutive low-improvement loss steps that constitute a plateau.
plateau_tol: TRelative-improvement tolerance below which a loss step counts as “no progress” for plateau detection.
cooldown_steps: usizeNumber of steps after any adjustment during which no new adjustment is made.
grad_norm_ceiling_factor: TMultiplier on the gradient-norm reference mean above which the gradient is considered “unbounded” (suppressing learning-rate increases).
Implementations§
Trait Implementations§
Source§impl<T> Clone for RealtimeAdaptationConfig<T>
impl<T> Clone for RealtimeAdaptationConfig<T>
impl<T> Copy for RealtimeAdaptationConfig<T>
Source§impl<T> Debug for RealtimeAdaptationConfig<T>
impl<T> Debug for RealtimeAdaptationConfig<T>
Source§impl<T> Default for RealtimeAdaptationConfig<T>
impl<T> Default for RealtimeAdaptationConfig<T>
Source§impl<T> PartialEq for RealtimeAdaptationConfig<T>
impl<T> PartialEq for RealtimeAdaptationConfig<T>
impl<T> StructuralPartialEq for RealtimeAdaptationConfig<T>
Auto Trait Implementations§
impl<T> Freeze for RealtimeAdaptationConfig<T>
impl<T> RefUnwindSafe for RealtimeAdaptationConfig<T>
impl<T> Send for RealtimeAdaptationConfig<T>where
DriftDetectorConfig<T>: Send,
impl<T> Sync for RealtimeAdaptationConfig<T>where
DriftDetectorConfig<T>: Sync,
impl<T> Unpin for RealtimeAdaptationConfig<T>
impl<T> UnsafeUnpin for RealtimeAdaptationConfig<T>
impl<T> UnwindSafe for RealtimeAdaptationConfig<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
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> 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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.