pub struct CoEAMetrics {
pub generation: u64,
pub best_fitness_a: f32,
pub best_fitness_b: f32,
pub mean_fitness_a: f32,
pub mean_fitness_b: f32,
pub binding_fitness: f32,
pub hof_size_a: usize,
pub hof_size_b: usize,
}Expand description
Per-generation summary for a co-evolutionary run.
The CoEAMetrics analogue of
StrategyMetrics, but tracking both
populations separately so a benchmark report can plot per-population
dynamics. The four best_fitness_* / mean_fitness_* display fields are
reported in the objective’s natural declared sense (parity with
single-population StrategyMetrics); the separate binding_fitness field
carries the canonical (engine-space) harness reward (ADR 0023).
Fields§
§generation: u64Number of completed simultaneous-update generations.
best_fitness_a: f32Best fitness population A has seen so far, in the objective’s natural
declared sense (a Minimize cost reads as its natural cost).
best_fitness_b: f32Best fitness population B has seen so far, in the objective’s natural
declared sense (a Minimize cost reads as its natural cost).
mean_fitness_a: f32Mean fitness of population A this generation, in the objective’s natural declared sense.
mean_fitness_b: f32Mean fitness of population B this generation, in the objective’s natural declared sense.
binding_fitness: f32Canonical (engine-space, maximise) binding fitness min(best_a, best_b)
— the weaker population binds. Engine-space, NOT mapped to the
objective’s natural sense; used as the harness reward. All other fitness
fields are in the objective’s natural sense.
hof_size_a: usizeHall-of-fame archive size for population A (0 if no archive).
hof_size_b: usizeHall-of-fame archive size for population B (0 if no archive).
Trait Implementations§
Source§impl Clone for CoEAMetrics
impl Clone for CoEAMetrics
Source§fn clone(&self) -> CoEAMetrics
fn clone(&self) -> CoEAMetrics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CoEAMetrics
impl RefUnwindSafe for CoEAMetrics
impl Send for CoEAMetrics
impl Sync for CoEAMetrics
impl Unpin for CoEAMetrics
impl UnsafeUnpin for CoEAMetrics
impl UnwindSafe for CoEAMetrics
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
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