pub struct GenerationSummary<M>{
pub index: usize,
pub best_fitness: f64,
pub average_fitness: f64,
pub best_metrics: M,
}Expand description
Summary of a processed generation.
Fields§
§index: usizeGeneration index starting from zero.
best_fitness: f64Best fitness score observed in the generation.
average_fitness: f64Average fitness across the generation.
best_metrics: MMetrics produced by the best candidate of the generation.
Trait Implementations§
Source§impl<M> Clone for GenerationSummary<M>
impl<M> Clone for GenerationSummary<M>
Source§fn clone(&self) -> GenerationSummary<M>
fn clone(&self) -> GenerationSummary<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<M> Freeze for GenerationSummary<M>where
M: Freeze,
impl<M> RefUnwindSafe for GenerationSummary<M>where
M: RefUnwindSafe,
impl<M> Send for GenerationSummary<M>
impl<M> Sync for GenerationSummary<M>
impl<M> Unpin for GenerationSummary<M>where
M: Unpin,
impl<M> UnwindSafe for GenerationSummary<M>where
M: UnwindSafe,
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