pub struct PopulationMember {
pub id: String,
pub params: HashMap<String, Value>,
pub state: Value,
pub fitness: Option<f64>,
}Expand description
A single member of the population.
Fields§
§id: StringStable member identifier (member_<i>).
params: HashMap<String, Value>Current hyperparameters — copied on exploit, mutated on explore.
state: ValueTrained state, updated after each generation’s training phase and
copied along with params when a top performer is exploited.
fitness: Option<f64>Latest evaluation score, higher is better; None before the first
evaluation (a failed evaluation records f64::NEG_INFINITY).
Trait Implementations§
Source§impl Clone for PopulationMember
impl Clone for PopulationMember
Source§fn clone(&self) -> PopulationMember
fn clone(&self) -> PopulationMember
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 moreAuto Trait Implementations§
impl Freeze for PopulationMember
impl RefUnwindSafe for PopulationMember
impl Send for PopulationMember
impl Sync for PopulationMember
impl Unpin for PopulationMember
impl UnsafeUnpin for PopulationMember
impl UnwindSafe for PopulationMember
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