pub struct DQNStepStatsBurn {
pub td_loss: f64,
pub mean_q: f64,
pub epsilon: f64,
pub buffer_len: usize,
}Expand description
Per-step training statistics for the Burn DQN trainer.
Mirrors crate::train::dqn::DQNStepStats (tch path) field-for-field
where the fields make sense for the Burn / non-prioritized path.
Prioritized-replay fields (beta, mean_abs_td_error) are dropped
because the Burn trainer does not yet implement prioritized replay
(see module doc).
Fields§
§td_loss: f64Mean Smooth-L1 (Huber) loss across the minibatch.
mean_q: f64Mean of Q(s, a) across the minibatch.
epsilon: f64ε used to draw the most recent action.
buffer_len: usizeReplay buffer fill level at the time of this update.
Trait Implementations§
Source§impl Clone for DQNStepStatsBurn
impl Clone for DQNStepStatsBurn
Source§fn clone(&self) -> DQNStepStatsBurn
fn clone(&self) -> DQNStepStatsBurn
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 DQNStepStatsBurn
Auto Trait Implementations§
impl Freeze for DQNStepStatsBurn
impl RefUnwindSafe for DQNStepStatsBurn
impl Send for DQNStepStatsBurn
impl Sync for DQNStepStatsBurn
impl Unpin for DQNStepStatsBurn
impl UnsafeUnpin for DQNStepStatsBurn
impl UnwindSafe for DQNStepStatsBurn
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