pub struct OptimizerState<T: Float> {
pub iteration: u32,
pub num_evaluations: u32,
pub best_score: Option<T>,
pub population: Vec<HyperparameterConfiguration<T>>,
pub surrogate_model: Option<SurrogateModel<T>>,
pub early_stopping: EarlyStoppingState<T>,
}Expand description
Internal state of the hyperparameter optimizer
Fields§
§iteration: u32Current iteration/generation
num_evaluations: u32Number of evaluations performed
best_score: Option<T>Best score found so far
population: Vec<HyperparameterConfiguration<T>>Population (for evolutionary strategies)
surrogate_model: Option<SurrogateModel<T>>Gaussian process model (for Bayesian optimization)
early_stopping: EarlyStoppingState<T>Early stopping information
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OptimizerState<T>where
Option<T>: Freeze,
Vec<HyperparameterConfiguration<T>>: Freeze,
Option<SurrogateModel<T>>: Freeze,
EarlyStoppingState<T>: Freeze,
impl<T> RefUnwindSafe for OptimizerState<T>where
Option<T>: RefUnwindSafe,
Vec<HyperparameterConfiguration<T>>: RefUnwindSafe,
Option<SurrogateModel<T>>: RefUnwindSafe,
EarlyStoppingState<T>: RefUnwindSafe,
impl<T> Send for OptimizerState<T>where
Option<T>: Send,
Vec<HyperparameterConfiguration<T>>: Send,
Option<SurrogateModel<T>>: Send,
EarlyStoppingState<T>: Send,
impl<T> Sync for OptimizerState<T>where
Option<T>: Sync,
Vec<HyperparameterConfiguration<T>>: Sync,
Option<SurrogateModel<T>>: Sync,
EarlyStoppingState<T>: Sync,
impl<T> Unpin for OptimizerState<T>where
Option<T>: Unpin,
Vec<HyperparameterConfiguration<T>>: Unpin,
Option<SurrogateModel<T>>: Unpin,
EarlyStoppingState<T>: Unpin,
impl<T> UnsafeUnpin for OptimizerState<T>where
Option<T>: UnsafeUnpin,
Vec<HyperparameterConfiguration<T>>: UnsafeUnpin,
Option<SurrogateModel<T>>: UnsafeUnpin,
EarlyStoppingState<T>: UnsafeUnpin,
impl<T> UnwindSafe for OptimizerState<T>where
Option<T>: UnwindSafe,
Vec<HyperparameterConfiguration<T>>: UnwindSafe,
Option<SurrogateModel<T>>: UnwindSafe,
EarlyStoppingState<T>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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