pub struct SvmParameter {}Expand description
SVM parameters controlling the formulation, kernel, and solver.
Default values match the original LIBSVM defaults.
Fields§
§svm_type: SvmTypeSVM formulation type.
kernel_type: KernelTypeKernel function type.
degree: i32Degree for polynomial kernel.
gamma: f64γ parameter for RBF, polynomial, and sigmoid kernels.
Set to 1/num_features when 0.
coef0: f64Independent term in polynomial and sigmoid kernels.
cache_size: f64Cache memory size in MB.
eps: f64Stopping tolerance for the solver.
c: f64Cost parameter C (for C-SVC, ε-SVR, ν-SVR).
weight: Vec<(i32, f64)>Per-class weight overrides: (class_label, weight) pairs.
nu: f64ν parameter (for ν-SVC, one-class SVM, ν-SVR).
p: f64ε in the ε-insensitive loss function (ε-SVR).
shrinking: boolWhether to use the shrinking heuristic.
probability: boolWhether to train for probability estimates.
Implementations§
Source§impl SvmParameter
impl SvmParameter
Trait Implementations§
Source§impl Clone for SvmParameter
impl Clone for SvmParameter
Source§impl Debug for SvmParameter
impl Debug for SvmParameter
Source§impl Default for SvmParameter
impl Default for SvmParameter
Source§impl<'de> Deserialize<'de> for SvmParameter
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SvmParameter
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
Source§impl PartialEq for SvmParameter
impl PartialEq for SvmParameter
Source§impl Serialize for SvmParameter
Available on crate feature serde only.
impl Serialize for SvmParameter
Available on crate feature
serde only.impl StructuralPartialEq for SvmParameter
Auto Trait Implementations§
impl Freeze for SvmParameter
impl RefUnwindSafe for SvmParameter
impl Send for SvmParameter
impl Sync for SvmParameter
impl Unpin for SvmParameter
impl UnsafeUnpin for SvmParameter
impl UnwindSafe for SvmParameter
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