pub struct NfspIterationStats {
pub iteration: usize,
pub reservoir_sizes: Vec<usize>,
pub br_stats: Option<JointStats>,
pub avg_policy_loss: Vec<Option<f64>>,
pub br_action_marginal: Vec<Option<Vec<f32>>>,
pub avg_action_marginal: Vec<Option<Vec<f32>>>,
pub cumulative_br_pushes: usize,
pub cumulative_rollout_steps: usize,
}Expand description
Per-iteration NFSP statistics.
Fields§
§iteration: usizeIteration index (1-based).
reservoir_sizes: Vec<usize>Per-agent reservoir size at the end of the iteration.
br_stats: Option<JointStats>Per-agent best-response training stats (the last
joint-trainer call’s JointStats).
avg_policy_loss: Vec<Option<f64>>Per-agent average-policy cross-entropy loss (averaged across
AP supervised steps). None if the AP was skipped because the
reservoir was empty.
br_action_marginal: Vec<Option<Vec<f32>>>Per-agent BR-action marginal under the constant matching-
pennies observation. None when the trainer is not on a
constant-obs env (callers may ignore on non-matching-pennies
envs).
avg_action_marginal: Vec<Option<Vec<f32>>>Per-agent AP-action marginal under the constant matching-
pennies observation. None when the trainer is not on a
constant-obs env.
cumulative_br_pushes: usizeCumulative count of BR-sampled actions (across the η-mixing rollout collector) since the trainer was constructed.
cumulative_rollout_steps: usizeCumulative count of rollout steps observed (across all agents).
Trait Implementations§
Source§impl Clone for NfspIterationStats
impl Clone for NfspIterationStats
Source§fn clone(&self) -> NfspIterationStats
fn clone(&self) -> NfspIterationStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NfspIterationStats
impl Debug for NfspIterationStats
Source§impl Default for NfspIterationStats
impl Default for NfspIterationStats
Source§fn default() -> NfspIterationStats
fn default() -> NfspIterationStats
Auto Trait Implementations§
impl Freeze for NfspIterationStats
impl RefUnwindSafe for NfspIterationStats
impl Send for NfspIterationStats
impl Sync for NfspIterationStats
impl Unpin for NfspIterationStats
impl UnsafeUnpin for NfspIterationStats
impl UnwindSafe for NfspIterationStats
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
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>
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>
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