pub struct TrainInfo {
pub lr: f32,
pub l1_reg: f32,
pub l2_reg: f32,
pub grad_clip: Option<f32>,
pub step: usize,
}Expand description
Describes the training parameters at some instant, serialized during recording.
Fields§
§lr: f32The learning rate used this update step.
l1_reg: f32The L1 regularization applied each update step.
l2_reg: f32The L2 regularization applied each update step.
grad_clip: Option<f32>The maximum magnitude of any update to any parameter.
step: usizeThe 0-indexed count of update steps.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrainInfo
impl<'de> Deserialize<'de> for TrainInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<TrainInfo> for &TrainParams
impl Into<TrainInfo> for &TrainParams
Auto Trait Implementations§
impl Freeze for TrainInfo
impl RefUnwindSafe for TrainInfo
impl Send for TrainInfo
impl Sync for TrainInfo
impl Unpin for TrainInfo
impl UnsafeUnpin for TrainInfo
impl UnwindSafe for TrainInfo
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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