pub struct ParallelEnsembleTrainer { /* private fields */ }Expand description
Parallel ensemble trainer
Implementations§
Source§impl ParallelEnsembleTrainer
impl ParallelEnsembleTrainer
Sourcepub fn new(config: ParallelConfig) -> Self
pub fn new(config: ParallelConfig) -> Self
Create a new parallel ensemble trainer
Sourcepub fn train_data_parallel<T, X, Y>(
&mut self,
trainer: &T,
x: &X,
y: &Y,
n_estimators: usize,
) -> Result<Vec<T::Output>>
pub fn train_data_parallel<T, X, Y>( &mut self, trainer: &T, x: &X, y: &Y, n_estimators: usize, ) -> Result<Vec<T::Output>>
Train ensemble using data-parallel strategy
Sourcepub fn train_model_parallel<T, X, Y>(
&mut self,
trainers: Vec<&T>,
x: &X,
y: &Y,
) -> Result<Vec<T::Output>>
pub fn train_model_parallel<T, X, Y>( &mut self, trainers: Vec<&T>, x: &X, y: &Y, ) -> Result<Vec<T::Output>>
Train ensemble using model-parallel strategy
Sourcepub fn performance_metrics(&self) -> &ParallelPerformanceMetrics
pub fn performance_metrics(&self) -> &ParallelPerformanceMetrics
Get performance metrics
Sourcepub fn reset_metrics(&mut self)
pub fn reset_metrics(&mut self)
Reset performance metrics
Sourcepub fn configure_for_hardware(&mut self, n_cores: usize, memory_gb: usize)
pub fn configure_for_hardware(&mut self, n_cores: usize, memory_gb: usize)
Configure parallel training for specific hardware
Sourcepub fn enable_advanced_features(&mut self)
pub fn enable_advanced_features(&mut self)
Enable advanced parallel features
Auto Trait Implementations§
impl Freeze for ParallelEnsembleTrainer
impl RefUnwindSafe for ParallelEnsembleTrainer
impl Send for ParallelEnsembleTrainer
impl Sync for ParallelEnsembleTrainer
impl Unpin for ParallelEnsembleTrainer
impl UnwindSafe for ParallelEnsembleTrainer
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