[][src]Struct libsvm::init::SvmInit

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>>,
}

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>>

Methods

impl SvmInit[src]

pub fn build(&self) -> Result<Svm<Untrained>, Error>[src]

Builds SVM model from the initializer.

Trait Implementations

impl Clone for SvmInit[src]

impl Debug for SvmInit[src]

impl Default for SvmInit[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.