pub struct DistributedRBFSampler { /* private fields */ }Expand description
Distributed RBF kernel approximation using Random Fourier Features
Distributes the computation of random Fourier features across multiple workers, each processing a subset of the data or feature dimensions.
Implementations§
Source§impl DistributedRBFSampler
impl DistributedRBFSampler
Sourcepub fn with_config(self, config: DistributedConfig) -> Self
pub fn with_config(self, config: DistributedConfig) -> Self
Set the distributed computing configuration
Sourcepub fn with_random_state(self, random_state: u64) -> Self
pub fn with_random_state(self, random_state: u64) -> Self
Set random state for reproducibility
Sourcepub fn transform(&self, x: &Array2<f64>) -> Result<Array2<f64>>
pub fn transform(&self, x: &Array2<f64>) -> Result<Array2<f64>>
Transform data using distributed computation
Sourcepub fn total_memory_usage(&self) -> usize
pub fn total_memory_usage(&self) -> usize
Get total memory usage across all workers
Auto Trait Implementations§
impl Freeze for DistributedRBFSampler
impl RefUnwindSafe for DistributedRBFSampler
impl Send for DistributedRBFSampler
impl Sync for DistributedRBFSampler
impl Unpin for DistributedRBFSampler
impl UnwindSafe for DistributedRBFSampler
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