pub struct DistributedLinearRegression { /* private fields */ }Expand description
Example distributed linear regression implementation
Implementations§
Source§impl DistributedLinearRegression
impl DistributedLinearRegression
Sourcepub fn with_config(self, config: DistributedTrainingConfig) -> Self
pub fn with_config(self, config: DistributedTrainingConfig) -> Self
Configure the distributed training parameters
Trait Implementations§
Source§impl Debug for DistributedLinearRegression
impl Debug for DistributedLinearRegression
Source§impl DistributedEstimator for DistributedLinearRegression
impl DistributedEstimator for DistributedLinearRegression
Source§type PredictionOutput = Vec<f64>
type PredictionOutput = Vec<f64>
Associated type for prediction output
Source§type Parameters = Vec<f64>
type Parameters = Vec<f64>
Associated type for model parameters
Source§fn fit_distributed<'a>(
&'a mut self,
_cluster: &'a dyn DistributedCluster,
training_data: &Self::TrainingData,
) -> BoxFuture<'a, Result<()>>
fn fit_distributed<'a>( &'a mut self, _cluster: &'a dyn DistributedCluster, training_data: &Self::TrainingData, ) -> BoxFuture<'a, Result<()>>
Fit the model using distributed training
Source§fn predict_distributed<'a>(
&'a self,
_cluster: &dyn DistributedCluster,
input: &'a Self::PredictionInput,
) -> BoxFuture<'a, Result<Self::PredictionOutput>>
fn predict_distributed<'a>( &'a self, _cluster: &dyn DistributedCluster, input: &'a Self::PredictionInput, ) -> BoxFuture<'a, Result<Self::PredictionOutput>>
Make predictions using the distributed model
Source§fn get_parameters(&self) -> Result<Self::Parameters>
fn get_parameters(&self) -> Result<Self::Parameters>
Get current model parameters
Source§fn set_parameters(&mut self, params: Self::Parameters) -> Result<()>
fn set_parameters(&mut self, params: Self::Parameters) -> Result<()>
Set model parameters
Source§fn sync_parameters(
&mut self,
_cluster: &dyn DistributedCluster,
) -> BoxFuture<'_, Result<()>>
fn sync_parameters( &mut self, _cluster: &dyn DistributedCluster, ) -> BoxFuture<'_, Result<()>>
Synchronize parameters across cluster nodes
Source§fn training_progress(&self) -> DistributedTrainingProgress
fn training_progress(&self) -> DistributedTrainingProgress
Get training progress information
Auto Trait Implementations§
impl Freeze for DistributedLinearRegression
impl RefUnwindSafe for DistributedLinearRegression
impl Send for DistributedLinearRegression
impl Sync for DistributedLinearRegression
impl Unpin for DistributedLinearRegression
impl UnwindSafe for DistributedLinearRegression
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