pub struct StreamingNystroem { /* private fields */ }Expand description
Streaming Nyström method for kernel approximation
Maintains an online Nyström approximation that adapts to streaming data with efficient inducing point management.
Implementations§
Source§impl StreamingNystroem
impl StreamingNystroem
Sourcepub fn new(n_components: usize, gamma: f64) -> Self
pub fn new(n_components: usize, gamma: f64) -> Self
Create a new streaming Nyström approximation
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 add_sample(&mut self, sample: StreamingSample) -> Result<()>
pub fn add_sample(&mut self, sample: StreamingSample) -> Result<()>
Add a new sample to the stream
Auto Trait Implementations§
impl Freeze for StreamingNystroem
impl RefUnwindSafe for StreamingNystroem
impl Send for StreamingNystroem
impl Sync for StreamingNystroem
impl Unpin for StreamingNystroem
impl UnwindSafe for StreamingNystroem
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