pub struct LSVMClassifier<State = Untrained> { /* private fields */ }Expand description
LS-SVM Classifier wrapper for binary classification
Implementations§
Source§impl LSVMClassifier<Untrained>
impl LSVMClassifier<Untrained>
Sourcepub fn kernel(self, kernel: KernelType) -> Self
pub fn kernel(self, kernel: KernelType) -> Self
Set the kernel type
Sourcepub fn fit_intercept(self, fit_intercept: bool) -> Self
pub fn fit_intercept(self, fit_intercept: bool) -> Self
Set whether to fit an intercept
Trait Implementations§
Source§impl<State: Debug> Debug for LSVMClassifier<State>
impl<State: Debug> Debug for LSVMClassifier<State>
Source§impl Default for LSVMClassifier<Untrained>
impl Default for LSVMClassifier<Untrained>
Source§impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<i32>, Dim<[usize; 1]>>> for LSVMClassifier<Untrained>
impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<i32>, Dim<[usize; 1]>>> for LSVMClassifier<Untrained>
Source§type Fitted = LSVMClassifier<Trained>
type Fitted = LSVMClassifier<Trained>
The fitted model type
Source§fn fit(self, x: &Array2<Float>, y: &Array1<i32>) -> Result<Self::Fitted>
fn fit(self, x: &Array2<Float>, y: &Array1<i32>) -> Result<Self::Fitted>
Fit the model to the provided data with validation
Source§fn fit_with_validation(
self,
x: &X,
y: &Y,
_x_val: Option<&X>,
_y_val: Option<&Y>,
) -> Result<(Self::Fitted, FitMetrics), SklearsError>where
Self: Sized,
fn fit_with_validation(
self,
x: &X,
y: &Y,
_x_val: Option<&X>,
_y_val: Option<&Y>,
) -> Result<(Self::Fitted, FitMetrics), SklearsError>where
Self: Sized,
Fit with custom validation and early stopping
Source§impl Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<i32>, Dim<[usize; 1]>>> for LSVMClassifier<Trained>
impl Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<i32>, Dim<[usize; 1]>>> for LSVMClassifier<Trained>
Source§fn predict(&self, x: &Array2<Float>) -> Result<Array1<i32>>
fn predict(&self, x: &Array2<Float>) -> Result<Array1<i32>>
Make predictions on the provided data
Source§fn predict_with_uncertainty(
&self,
x: &X,
) -> Result<(Output, UncertaintyMeasure), SklearsError>
fn predict_with_uncertainty( &self, x: &X, ) -> Result<(Output, UncertaintyMeasure), SklearsError>
Make predictions with confidence intervals
Auto Trait Implementations§
impl<State> Freeze for LSVMClassifier<State>
impl<State> RefUnwindSafe for LSVMClassifier<State>where
State: RefUnwindSafe,
impl<State> Send for LSVMClassifier<State>where
State: Send,
impl<State> Sync for LSVMClassifier<State>where
State: Sync,
impl<State> Unpin for LSVMClassifier<State>where
State: Unpin,
impl<State> UnsafeUnpin for LSVMClassifier<State>
impl<State> UnwindSafe for LSVMClassifier<State>where
State: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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