pub struct DistributedProcessor { /* private fields */ }
Expand description
Distributed dataset processor
Implementations§
Source§impl DistributedProcessor
impl DistributedProcessor
Sourcepub fn new(config: DistributedConfig) -> Result<Self>
pub fn new(config: DistributedConfig) -> Result<Self>
Create a new distributed processor
Sourcepub fn default_config() -> Result<Self>
pub fn default_config() -> Result<Self>
Create with default configuration
Sourcepub fn process_dataset_parallel<F, R>(
&self,
dataset: &Dataset,
processor: F,
) -> Result<Vec<R>>
pub fn process_dataset_parallel<F, R>( &self, dataset: &Dataset, processor: F, ) -> Result<Vec<R>>
Process a large dataset in parallel chunks
Sourcepub fn map_reduce_dataset<M, R, C>(
&self,
dataset: &Dataset,
mapper: M,
reducer: R,
) -> Result<C>
pub fn map_reduce_dataset<M, R, C>( &self, dataset: &Dataset, mapper: M, reducer: R, ) -> Result<C>
Distribute dataset across multiple workers with MapReduce pattern
Sourcepub fn split_dataset_into_chunks(
&self,
dataset: &Dataset,
) -> Result<Vec<Dataset>>
pub fn split_dataset_into_chunks( &self, dataset: &Dataset, ) -> Result<Vec<Dataset>>
Split a dataset into balanced chunks for distribution
Sourcepub fn distributed_sample(
&self,
dataset: &Dataset,
n_samples: usize,
random_state: Option<u64>,
) -> Result<Dataset>
pub fn distributed_sample( &self, dataset: &Dataset, n_samples: usize, random_state: Option<u64>, ) -> Result<Dataset>
Distributed random sampling across workers
Sourcepub fn distributed_k_fold(
&self,
dataset: &Dataset,
k: usize,
shuffle: bool,
random_state: Option<u64>,
) -> Result<Vec<(Dataset, Dataset)>>
pub fn distributed_k_fold( &self, dataset: &Dataset, k: usize, shuffle: bool, random_state: Option<u64>, ) -> Result<Vec<(Dataset, Dataset)>>
Distributed cross-validation split
Sourcepub fn distributed_stratified_sample(
&self,
dataset: &Dataset,
n_samples: usize,
random_state: Option<u64>,
) -> Result<Dataset>
pub fn distributed_stratified_sample( &self, dataset: &Dataset, n_samples: usize, random_state: Option<u64>, ) -> Result<Dataset>
Distributed stratified sampling
Sourcepub fn distributed_scale(
&self,
dataset: &Dataset,
method: ScalingMethod,
) -> Result<(Dataset, ScalingParameters)>
pub fn distributed_scale( &self, dataset: &Dataset, method: ScalingMethod, ) -> Result<(Dataset, ScalingParameters)>
Parallel feature scaling across workers
Auto Trait Implementations§
impl !Freeze for DistributedProcessor
impl !RefUnwindSafe for DistributedProcessor
impl Send for DistributedProcessor
impl !Sync for DistributedProcessor
impl Unpin for DistributedProcessor
impl UnwindSafe for DistributedProcessor
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.