pub struct SchedulerConfig {
pub scheduler_type: SchedulerType,
pub base_lr: f64,
pub max_lr: Option<f64>,
pub min_lr: Option<f64>,
pub total_steps: Option<usize>,
pub step_size: Option<usize>,
pub gamma: Option<f64>,
pub warmup_steps: Option<usize>,
pub pct_start: Option<f64>,
}Expand description
Builder for creating scheduler configurations.
Fields§
§scheduler_type: SchedulerTypeThe type of scheduler to construct.
base_lr: f64Base learning rate.
max_lr: Option<f64>Optional maximum learning rate (used by cyclical and one-cycle schedulers).
min_lr: Option<f64>Optional minimum learning rate floor.
total_steps: Option<usize>Optional total number of training steps.
step_size: Option<usize>Optional step size for decay / cyclical half-period.
gamma: Option<f64>Optional decay factor (used by step decay).
warmup_steps: Option<usize>Optional number of warmup steps.
pct_start: Option<f64>Optional fraction of total steps used for warmup in one-cycle.
Implementations§
Trait Implementations§
Source§impl Clone for SchedulerConfig
impl Clone for SchedulerConfig
Source§fn clone(&self) -> SchedulerConfig
fn clone(&self) -> SchedulerConfig
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 moreAuto Trait Implementations§
impl Freeze for SchedulerConfig
impl RefUnwindSafe for SchedulerConfig
impl Send for SchedulerConfig
impl Sync for SchedulerConfig
impl Unpin for SchedulerConfig
impl UnsafeUnpin for SchedulerConfig
impl UnwindSafe for SchedulerConfig
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> 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