pub struct BayesianEnsembleOptimizer { /* private fields */ }Expand description
Bayesian optimization for ensemble size selection
Implementations§
Source§impl BayesianEnsembleOptimizer
impl BayesianEnsembleOptimizer
Sourcepub fn new(config: CompressionConfig, random_state: u64) -> Self
pub fn new(config: CompressionConfig, random_state: u64) -> Self
Create a new Bayesian ensemble optimizer
Sourcepub fn optimize_ensemble_size<T>(
&mut self,
ensemble: &[T],
x_val: &Array2<Float>,
y_val: &Array1<Int>,
) -> Result<usize>
pub fn optimize_ensemble_size<T>( &mut self, ensemble: &[T], x_val: &Array2<Float>, y_val: &Array1<Int>, ) -> Result<usize>
Optimize ensemble size using Bayesian optimization
Sourcepub fn best_config(&self) -> Option<(usize, Float)>
pub fn best_config(&self) -> Option<(usize, Float)>
Get best configuration found
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BayesianEnsembleOptimizer
impl RefUnwindSafe for BayesianEnsembleOptimizer
impl Send for BayesianEnsembleOptimizer
impl Sync for BayesianEnsembleOptimizer
impl Unpin for BayesianEnsembleOptimizer
impl UnwindSafe for BayesianEnsembleOptimizer
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> 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