pub struct EnsembleSelector { /* private fields */ }Expand description
Ensemble model selector
Implementations§
Source§impl EnsembleSelector
impl EnsembleSelector
Sourcepub fn with_config(config: EnsembleSelectionConfig) -> Self
pub fn with_config(config: EnsembleSelectionConfig) -> Self
Create a new ensemble selector with custom configuration
Sourcepub fn max_ensemble_size(self, size: usize) -> Self
pub fn max_ensemble_size(self, size: usize) -> Self
Set maximum ensemble size
Sourcepub fn min_ensemble_size(self, size: usize) -> Self
pub fn min_ensemble_size(self, size: usize) -> Self
Set minimum ensemble size
Sourcepub fn strategies(self, strategies: Vec<EnsembleStrategy>) -> Self
pub fn strategies(self, strategies: Vec<EnsembleStrategy>) -> Self
Set candidate strategies
Sourcepub fn diversity_threshold(self, threshold: f64) -> Self
pub fn diversity_threshold(self, threshold: f64) -> Self
Set diversity threshold
Sourcepub fn use_greedy_selection(self, use_greedy: bool) -> Self
pub fn use_greedy_selection(self, use_greedy: bool) -> Self
Enable or disable greedy selection
Sourcepub fn select_ensemble<E, X, Y>(
&self,
models: &[(E, String)],
x: &[X],
y: &[Y],
cv: &dyn CrossValidator,
scoring: &dyn Scoring,
) -> Result<EnsembleSelectionResult>
pub fn select_ensemble<E, X, Y>( &self, models: &[(E, String)], x: &[X], y: &[Y], cv: &dyn CrossValidator, scoring: &dyn Scoring, ) -> Result<EnsembleSelectionResult>
Select optimal ensemble from candidate models
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnsembleSelector
impl RefUnwindSafe for EnsembleSelector
impl Send for EnsembleSelector
impl Sync for EnsembleSelector
impl Unpin for EnsembleSelector
impl UnwindSafe for EnsembleSelector
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