pub struct StreamingRBFSampler { /* private fields */ }Expand description
Streaming RBF kernel approximation using Random Fourier Features
Maintains an online approximation of RBF kernel features that adapts to data streams with concept drift and memory constraints.
Implementations§
Source§impl StreamingRBFSampler
impl StreamingRBFSampler
Sourcepub fn with_config(self, config: StreamingConfig) -> Self
pub fn with_config(self, config: StreamingConfig) -> Self
Set the streaming 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 fit(&mut self, x: &Array2<f64>) -> Result<()>
pub fn fit(&mut self, x: &Array2<f64>) -> Result<()>
Initialize the streaming sampler with initial data
Sourcepub fn add_sample(&mut self, sample: StreamingSample) -> Result<()>
pub fn add_sample(&mut self, sample: StreamingSample) -> Result<()>
Add a new sample to the stream
Sourcepub fn transform(&self, x: &Array2<f64>) -> Result<Array2<f64>>
pub fn transform(&self, x: &Array2<f64>) -> Result<Array2<f64>>
Transform data using current model
Sourcepub fn transform_sample(&self, sample: &Array1<f64>) -> Result<Array1<f64>>
pub fn transform_sample(&self, sample: &Array1<f64>) -> Result<Array1<f64>>
Transform a single sample
Sourcepub fn buffer_stats(&self) -> (usize, f64, f64)
pub fn buffer_stats(&self) -> (usize, f64, f64)
Get current buffer statistics
Sourcepub fn feature_stats(&self) -> &FeatureStatistics
pub fn feature_stats(&self) -> &FeatureStatistics
Get feature statistics
Auto Trait Implementations§
impl Freeze for StreamingRBFSampler
impl RefUnwindSafe for StreamingRBFSampler
impl Send for StreamingRBFSampler
impl Sync for StreamingRBFSampler
impl Unpin for StreamingRBFSampler
impl UnwindSafe for StreamingRBFSampler
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