pub struct MultiClassSVC<State = Untrained> { /* private fields */ }Expand description
Multi-class Support Vector Classification
Implementations§
Source§impl MultiClassSVC<Untrained>
impl MultiClassSVC<Untrained>
Sourcepub fn poly(self, degree: usize, gamma: Option<Float>, coef0: Float) -> Self
pub fn poly(self, degree: usize, gamma: Option<Float>, coef0: Float) -> Self
Set the kernel to polynomial
Sourcepub fn strategy(self, strategy: MultiClassStrategy) -> Self
pub fn strategy(self, strategy: MultiClassStrategy) -> Self
Set the multi-class strategy
Sourcepub fn one_vs_rest(self) -> Self
pub fn one_vs_rest(self) -> Self
Set One-vs-Rest strategy
Sourcepub fn one_vs_one(self) -> Self
pub fn one_vs_one(self) -> Self
Set One-vs-One strategy
Sourcepub fn one_vs_one_decision(self) -> Self
pub fn one_vs_one_decision(self) -> Self
Set One-vs-One strategy with decision-based voting
Sourcepub fn hierarchical_tree(self) -> Self
pub fn hierarchical_tree(self) -> Self
Set hierarchical tree strategy
Source§impl MultiClassSVC<Trained>
impl MultiClassSVC<Trained>
Sourcepub fn n_estimators(&self) -> usize
pub fn n_estimators(&self) -> usize
Get the number of estimators
Sourcepub fn estimators(&self) -> &[SVC<Trained>]
pub fn estimators(&self) -> &[SVC<Trained>]
Get a reference to the binary estimators
Trait Implementations§
Source§impl<State: Clone> Clone for MultiClassSVC<State>
impl<State: Clone> Clone for MultiClassSVC<State>
Source§fn clone(&self) -> MultiClassSVC<State>
fn clone(&self) -> MultiClassSVC<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 MultiClassSVC<State>
impl<State: Debug> Debug for MultiClassSVC<State>
Source§impl Default for MultiClassSVC<Untrained>
impl Default for MultiClassSVC<Untrained>
Source§impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for MultiClassSVC<Untrained>
impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for MultiClassSVC<Untrained>
Source§type Fitted = MultiClassSVC<Trained>
type Fitted = MultiClassSVC<Trained>
The fitted model type
Source§fn fit(self, x: &Array2<Float>, y: &Array1<Float>) -> Result<Self::Fitted>
fn fit(self, x: &Array2<Float>, y: &Array1<Float>) -> 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 MultiClassSVC<Trained>
impl Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for MultiClassSVC<Trained>
Source§fn predict(&self, x: &Array2<Float>) -> Result<Array1<Float>>
fn predict(&self, x: &Array2<Float>) -> Result<Array1<Float>>
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 MultiClassSVC<State>
impl<State> RefUnwindSafe for MultiClassSVC<State>where
State: RefUnwindSafe,
impl<State> Send for MultiClassSVC<State>where
State: Send,
impl<State> Sync for MultiClassSVC<State>where
State: Sync,
impl<State> Unpin for MultiClassSVC<State>where
State: Unpin,
impl<State> UnsafeUnpin for MultiClassSVC<State>
impl<State> UnwindSafe for MultiClassSVC<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