pub struct AdaptiveSVM<State = Untrained> { /* private fields */ }Expand description
Adaptive regularization SVM wrapper
Implementations§
Source§impl AdaptiveSVM<Untrained>
impl AdaptiveSVM<Untrained>
Sourcepub fn with_strategy(self, strategy: AdaptiveStrategy) -> Self
pub fn with_strategy(self, strategy: AdaptiveStrategy) -> Self
Set the adaptive strategy
Sourcepub fn with_initial_c(self, c: f64) -> Self
pub fn with_initial_c(self, c: f64) -> Self
Set initial C parameter
Sourcepub fn with_max_iter(self, max_iter: usize) -> Self
pub fn with_max_iter(self, max_iter: usize) -> Self
Set maximum iterations
Sourcepub fn with_tolerance(self, tol: f64) -> Self
pub fn with_tolerance(self, tol: f64) -> Self
Set tolerance
Sourcepub fn with_svm_config(self, config: SvcConfig) -> Self
pub fn with_svm_config(self, config: SvcConfig) -> Self
Set base SVM configuration
Trait Implementations§
Source§impl<State: Clone> Clone for AdaptiveSVM<State>
impl<State: Clone> Clone for AdaptiveSVM<State>
Source§fn clone(&self) -> AdaptiveSVM<State>
fn clone(&self) -> AdaptiveSVM<State>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<State: Debug> Debug for AdaptiveSVM<State>
impl<State: Debug> Debug for AdaptiveSVM<State>
Source§impl Default for AdaptiveSVM<Untrained>
impl Default for AdaptiveSVM<Untrained>
Source§impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for AdaptiveSVM<Untrained>
impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for AdaptiveSVM<Untrained>
Source§type Fitted = AdaptiveSVM<Trained>
type Fitted = AdaptiveSVM<Trained>
The fitted model type
Source§fn fit(self, x: &Array2<f64>, y: &Array1<f64>) -> Result<Self::Fitted>
fn fit(self, x: &Array2<f64>, y: &Array1<f64>) -> 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<f64>, Dim<[usize; 1]>>> for AdaptiveSVM<Trained>
impl Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for AdaptiveSVM<Trained>
Source§fn predict(&self, x: &Array2<f64>) -> Result<Array1<f64>>
fn predict(&self, x: &Array2<f64>) -> Result<Array1<f64>>
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 AdaptiveSVM<State>
impl<State> RefUnwindSafe for AdaptiveSVM<State>where
State: RefUnwindSafe,
impl<State> Send for AdaptiveSVM<State>where
State: Send,
impl<State> Sync for AdaptiveSVM<State>where
State: Sync,
impl<State> Unpin for AdaptiveSVM<State>where
State: Unpin,
impl<State> UnsafeUnpin for AdaptiveSVM<State>
impl<State> UnwindSafe for AdaptiveSVM<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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