pub struct Options {
pub steps: usize,
pub learning_rate: f64,
pub warmup: usize,
pub smoothness: f64,
pub weighting: Weighting,
}Expand description
Optimiser settings (the defaults are the ones validated on hardware).
Fields§
§steps: usizeAdam steps.
learning_rate: f64Peak learning rate (in natural-log magnitude per step), reached after warmup steps and
then decayed to 0 along a half cosine.
warmup: usize§smoothness: f64Weight of the curve smoothness term (mean squared second difference of each curve).
weighting: WeightingHow the loss weights frequencies.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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