pub struct BayesianOptimizerFitted { /* private fields */ }Expand description
Fitted Bayesian Optimizer that can suggest new points
Implementations§
Source§impl BayesianOptimizerFitted
impl BayesianOptimizerFitted
Sourcepub fn suggest_next_point(
&self,
bounds: &ArrayView2<'_, f64>,
) -> SklResult<Array1<f64>>
pub fn suggest_next_point( &self, bounds: &ArrayView2<'_, f64>, ) -> SklResult<Array1<f64>>
Suggest the next point to evaluate
Sourcepub fn update(
self,
x_new: &ArrayView1<'_, f64>,
y_new: f64,
) -> SklResult<BayesianOptimizerFitted>
pub fn update( self, x_new: &ArrayView1<'_, f64>, y_new: f64, ) -> SklResult<BayesianOptimizerFitted>
Update the optimizer with a new observation
Sourcepub fn get_best_value(&self) -> f64
pub fn get_best_value(&self) -> f64
Get the current best observed value
Sourcepub fn get_best_point(&self) -> SklResult<Array1<f64>>
pub fn get_best_point(&self) -> SklResult<Array1<f64>>
Get the point that achieved the best value
Source§impl BayesianOptimizerFitted
impl BayesianOptimizerFitted
Sourcepub fn predict_variance(&self, X: &Array2<f64>) -> SklResult<Array1<f64>>
pub fn predict_variance(&self, X: &Array2<f64>) -> SklResult<Array1<f64>>
Predict variance at given points
Sourcepub fn acquisition_value(
&self,
x: &Array1<f64>,
current_best: f64,
) -> SklResult<f64>
pub fn acquisition_value( &self, x: &Array1<f64>, current_best: f64, ) -> SklResult<f64>
Compute acquisition value at a given point
Trait Implementations§
Source§impl Clone for BayesianOptimizerFitted
impl Clone for BayesianOptimizerFitted
Source§fn clone(&self) -> BayesianOptimizerFitted
fn clone(&self) -> BayesianOptimizerFitted
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BayesianOptimizerFitted
impl !RefUnwindSafe for BayesianOptimizerFitted
impl Send for BayesianOptimizerFitted
impl Sync for BayesianOptimizerFitted
impl Unpin for BayesianOptimizerFitted
impl !UnwindSafe for BayesianOptimizerFitted
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