pub struct SvmInit {
pub model: Option<ModelInit>,
pub kernel: Option<KernelInit>,
pub cache_size: Option<usize>,
pub probability_estimates: Option<bool>,
pub shrinking: Option<bool>,
pub termination_eps: Option<f64>,
pub label_weights: Option<HashMap<isize, f64>>,
}
Expand description
The SVM model initializer.
Fields
model: Option<ModelInit>
kernel: Option<KernelInit>
cache_size: Option<usize>
probability_estimates: Option<bool>
shrinking: Option<bool>
termination_eps: Option<f64>
label_weights: Option<HashMap<isize, f64>>
Implementations
sourceimpl SvmInit
impl SvmInit
sourcepub fn build(&self) -> Result<SvmTrainer, Error>
pub fn build(&self) -> Result<SvmTrainer, Error>
Builds SVM model from the initializer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SvmInit
impl Send for SvmInit
impl Sync for SvmInit
impl Unpin for SvmInit
impl UnwindSafe for SvmInit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more