pub struct LinearKernelInstance { /* private fields */ }Expand description
Linear kernel instance
Trait Implementations§
Source§impl KernelApproximationInstance for LinearKernelInstance
impl KernelApproximationInstance for LinearKernelInstance
Source§fn fit(&mut self, x: &Array2<f64>, _y: &()) -> Result<(), PluginError>
fn fit(&mut self, x: &Array2<f64>, _y: &()) -> Result<(), PluginError>
Fit the approximation to data
Source§fn transform(&self, x: &Array2<f64>) -> Result<Array2<f64>, PluginError>
fn transform(&self, x: &Array2<f64>) -> Result<Array2<f64>, PluginError>
Transform data using the fitted approximation
Source§fn n_output_features(&self) -> Option<usize>
fn n_output_features(&self) -> Option<usize>
Get the number of output features
Source§fn clone_instance(&self) -> Box<dyn KernelApproximationInstance>
fn clone_instance(&self) -> Box<dyn KernelApproximationInstance>
Clone the instance
Auto Trait Implementations§
impl Freeze for LinearKernelInstance
impl RefUnwindSafe for LinearKernelInstance
impl Send for LinearKernelInstance
impl Sync for LinearKernelInstance
impl Unpin for LinearKernelInstance
impl UnwindSafe for LinearKernelInstance
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