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§fn clone(&self) -> SvmParameter
fn clone(&self) -> SvmParameter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SvmParameter
impl Debug for SvmParameter
Source§impl Default for SvmParameter
impl Default for SvmParameter
Source§impl PartialEq for SvmParameter
impl PartialEq for SvmParameter
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 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