pub struct SacStepStats {
pub critic_loss: f64,
pub actor_loss: f64,
pub alpha_loss: f64,
pub alpha: f64,
pub mean_q: f64,
pub buffer_len: usize,
}Expand description
Per-step training statistics for the SAC trainer.
Analogous to crate::train::dqn::DQNStepStatsBurn. Returned by
SacTrainer::train_step once a gradient update has actually run.
Fields§
§critic_loss: f64Mean MSE critic loss across the two online critics for this batch.
actor_loss: f64Actor (policy) loss for this batch.
alpha_loss: f64Entropy-temperature loss (0.0 when auto_alpha is disabled).
alpha: f64Current entropy temperature alpha.
mean_q: f64Mean of min(Q1, Q2)(s, a) over the batch on the stored actions.
buffer_len: usizeReplay buffer fill level at the time of this update.
Trait Implementations§
Source§impl Clone for SacStepStats
impl Clone for SacStepStats
Source§fn clone(&self) -> SacStepStats
fn clone(&self) -> SacStepStats
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 SacStepStats
Auto Trait Implementations§
impl Freeze for SacStepStats
impl RefUnwindSafe for SacStepStats
impl Send for SacStepStats
impl Sync for SacStepStats
impl Unpin for SacStepStats
impl UnsafeUnpin for SacStepStats
impl UnwindSafe for SacStepStats
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