pub struct PBTWorker<E> {
pub id: usize,
pub parameters: PBTParameters,
pub estimator: Option<E>,
pub score_history: Vec<f64>,
pub current_score: f64,
pub step: usize,
}Expand description
A worker in the PBT population
Fields§
§id: usizeWorker ID
parameters: PBTParametersCurrent hyperparameters
estimator: Option<E>Current model state
score_history: Vec<f64>Performance history
current_score: f64Current performance score
step: usizeTraining step count
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for PBTWorker<E>where
E: Freeze,
impl<E> RefUnwindSafe for PBTWorker<E>where
E: RefUnwindSafe,
impl<E> Send for PBTWorker<E>where
E: Send,
impl<E> Sync for PBTWorker<E>where
E: Sync,
impl<E> Unpin for PBTWorker<E>where
E: Unpin,
impl<E> UnsafeUnpin for PBTWorker<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for PBTWorker<E>where
E: 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
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