pub enum MultiClass {
Ovr,
CrammerSinger,
}Expand description
Multiclass strategy for LinearSVC.
Mirrors sklearn.svm.LinearSVC’s multi_class parameter
(sklearn/svm/_classes.py:239, constraint {"ovr", "crammer_singer"},
default "ovr"). Ovr trains one binary classifier per class (the default,
using the penalty/loss/dual solver matrix); CrammerSinger runs the joint
Crammer-Singer multiclass SVM solver (Solver_MCSVM_CS,
liblinear/linear.cpp:493-787, solver type 4).
When CrammerSinger is selected, _get_liblinear_solver_type returns 4
regardless of penalty/loss/dual (_base.py:1017,1020-1021), so the
penalty/loss/dual parameters are ignored and the joint solver runs.
Variants§
Ovr
One-vs-rest: one binary sub-problem per class (the default).
CrammerSinger
Joint Crammer-Singer multiclass SVM (Solver_MCSVM_CS, solver type 4,
linear.cpp:493-787). Ignores penalty/loss/dual (_base.py:1017).
Trait Implementations§
Source§impl Clone for MultiClass
impl Clone for MultiClass
Source§fn clone(&self) -> MultiClass
fn clone(&self) -> MultiClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MultiClass
Source§impl Debug for MultiClass
impl Debug for MultiClass
Source§impl Default for MultiClass
impl Default for MultiClass
Source§fn default() -> MultiClass
fn default() -> MultiClass
impl Eq for MultiClass
Source§impl PartialEq for MultiClass
impl PartialEq for MultiClass
Source§fn eq(&self, other: &MultiClass) -> bool
fn eq(&self, other: &MultiClass) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MultiClass
Auto Trait Implementations§
impl Freeze for MultiClass
impl RefUnwindSafe for MultiClass
impl Send for MultiClass
impl Sync for MultiClass
impl Unpin for MultiClass
impl UnsafeUnpin for MultiClass
impl UnwindSafe for MultiClass
Blanket Implementations§
impl<T> Boilerplate for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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>
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>
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