#[repr(i32)]pub enum SvmType {
CSvc = 0,
NuSvc = 1,
OneClass = 2,
EpsilonSvr = 3,
NuSvr = 4,
}Expand description
Type of SVM formulation.
Matches the integer constants in the original LIBSVM (svm.h):
C_SVC=0, NU_SVC=1, ONE_CLASS=2, EPSILON_SVR=3, NU_SVR=4.
Variants§
CSvc = 0
C-Support Vector Classification.
NuSvc = 1
ν-Support Vector Classification.
OneClass = 2
One-class SVM (distribution estimation / novelty detection).
EpsilonSvr = 3
ε-Support Vector Regression.
NuSvr = 4
ν-Support Vector Regression.
Trait Implementations§
impl Copy for SvmType
Source§impl<'de> Deserialize<'de> for SvmType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SvmType
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SvmType
impl StructuralPartialEq for SvmType
Auto Trait Implementations§
impl Freeze for SvmType
impl RefUnwindSafe for SvmType
impl Send for SvmType
impl Sync for SvmType
impl Unpin for SvmType
impl UnsafeUnpin for SvmType
impl UnwindSafe for SvmType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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