pub struct BayesianOptimizer { /* private fields */ }Expand description
Bayesian optimizer using Gaussian Process surrogate.
Implementations§
Source§impl BayesianOptimizer
impl BayesianOptimizer
Sourcepub fn new(config: OptimizerConfig) -> Self
pub fn new(config: OptimizerConfig) -> Self
Create a new Bayesian optimizer.
Sourcepub fn suggest(&mut self) -> Vec<f64>
pub fn suggest(&mut self) -> Vec<f64>
Suggest the next point to evaluate (Kaizen: continuous improvement).
Uses random candidate optimization of the acquisition function.
Sourcepub fn n_observations(&self) -> usize
pub fn n_observations(&self) -> usize
Get number of observations.
Sourcepub const fn config(&self) -> &OptimizerConfig
pub const fn config(&self) -> &OptimizerConfig
Get the configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BayesianOptimizer
impl RefUnwindSafe for BayesianOptimizer
impl Send for BayesianOptimizer
impl Sync for BayesianOptimizer
impl Unpin for BayesianOptimizer
impl UnsafeUnpin for BayesianOptimizer
impl UnwindSafe for BayesianOptimizer
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