pub struct PbtConfig {
pub population_size: usize,
pub generations: usize,
pub exploit: ExploitStrategy,
pub explore: ExploreStrategy,
pub search_space: SearchSpace,
pub train_steps_per_generation: usize,
}Expand description
Configuration for a PBT run.
Fields§
§population_size: usizeNumber of members evolved together.
generations: usizeTrain → evaluate → exploit/explore cycles to run.
exploit: ExploitStrategyHow underperformers copy top performers (truncation, binary tournament).
explore: ExploreStrategyHow copied hyperparameters are mutated afterwards.
search_space: SearchSpaceDimensions the initial population and Resample mutations draw from.
train_steps_per_generation: usizeAdvisory length of one generation’s training phase. The runner calls
PbtExecutor::train once per member per generation; what a “step”
means is the executor’s to interpret.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PbtConfig
impl RefUnwindSafe for PbtConfig
impl Send for PbtConfig
impl Sync for PbtConfig
impl Unpin for PbtConfig
impl UnsafeUnpin for PbtConfig
impl UnwindSafe for PbtConfig
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