pub struct TrainingConfig {
pub epochs: usize,
pub print_every: usize,
pub clip_gradient: Option<f64>,
pub log_lr_changes: bool,
}
Expand description
Configuration for training hyperparameters
Fields§
§epochs: usize
§print_every: usize
§clip_gradient: Option<f64>
§log_lr_changes: bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrainingConfig
impl RefUnwindSafe for TrainingConfig
impl Send for TrainingConfig
impl Sync for TrainingConfig
impl Unpin for TrainingConfig
impl UnwindSafe for TrainingConfig
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