pub struct BcEpochStats {
pub loss: f64,
pub accuracy: f64,
}Expand description
Per-epoch behavioral-cloning statistics.
Both fields are finite host-side f64s aggregated over the epoch’s
minibatches. Purpose-built (rather than reusing the RL stats structs)
because BC has no policy/value/entropy decomposition — just the
supervised loss and the action-match accuracy.
Fields§
§loss: f64Mean cross-entropy loss over the epoch’s minibatches.
accuracy: f64Mean action-match accuracy in [0, 1]: the fraction of examples whose
argmax-logit action matched the expert label, averaged over the epoch.
Trait Implementations§
Source§impl Clone for BcEpochStats
impl Clone for BcEpochStats
Source§fn clone(&self) -> BcEpochStats
fn clone(&self) -> BcEpochStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BcEpochStats
Source§impl Debug for BcEpochStats
impl Debug for BcEpochStats
Source§impl Default for BcEpochStats
impl Default for BcEpochStats
Source§fn default() -> BcEpochStats
fn default() -> BcEpochStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BcEpochStats
impl RefUnwindSafe for BcEpochStats
impl Send for BcEpochStats
impl Sync for BcEpochStats
impl Unpin for BcEpochStats
impl UnsafeUnpin for BcEpochStats
impl UnwindSafe for BcEpochStats
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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