pub struct PBTConfig {
pub population_size: usize,
pub perturbation_interval: usize,
pub replacement_fraction: f64,
pub perturbation_factor: f64,
pub max_iterations: usize,
pub patience: Option<usize>,
pub random_state: Option<u64>,
}Expand description
Configuration for Population-based Training
Fields§
§population_size: usizePopulation size (number of parallel workers)
perturbation_interval: usizeHow often to perform exploitation and exploration (in training steps)
replacement_fraction: f64Fraction of population to replace in each perturbation
perturbation_factor: f64Standard deviation for hyperparameter perturbation
max_iterations: usizeMaximum number of training iterations
patience: Option<usize>Early stopping patience
random_state: Option<u64>Random seed for reproducibility
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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