pub struct OnlineUpdateResult {
pub loss: f64,
pub weight_delta_norm: f64,
pub was_mistake: bool,
}Expand description
Result of a single online update step.
Fields§
§loss: f64Loss on this sample computed before the update.
weight_delta_norm: f64L2 norm of the weight change vector (||Δw||).
was_mistake: boolFor classifiers: whether the prediction was incorrect before the update.
Trait Implementations§
Source§impl Clone for OnlineUpdateResult
impl Clone for OnlineUpdateResult
Source§fn clone(&self) -> OnlineUpdateResult
fn clone(&self) -> OnlineUpdateResult
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 OnlineUpdateResult
impl RefUnwindSafe for OnlineUpdateResult
impl Send for OnlineUpdateResult
impl Sync for OnlineUpdateResult
impl Unpin for OnlineUpdateResult
impl UnsafeUnpin for OnlineUpdateResult
impl UnwindSafe for OnlineUpdateResult
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