[][src]Struct linfa_svm::Svm

pub struct Svm<'a, A: Float, T> {
    pub alpha: Vec<A>,
    pub rho: A,
    // some fields omitted
}

The result of the SMO solver

Fields

alpha: Vec<A>rho: A

Implementations

impl<'a, A: Float, T> Svm<'a, A, T>[src]

pub fn params() -> SvmParams<A, T>[src]

pub fn nsupport(&self) -> usize[src]

Returns the number of support vectors

pub fn with_phantom<S>(self) -> Svm<'a, A, S>[src]

Trait Implementations

impl<'a, A: Float, T> Display for Svm<'a, A, T>[src]

impl<'a, F: Float, T: Targets, D: Data<Elem = F>> Predict<&'a DatasetBase<ArrayBase<D, Dim<[usize; 2]>>, T>, DatasetBase<ArrayBase<ViewRepr<&'a F>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<Pr>, Dim<[usize; 1]>>>> for Svm<'a, F, Pr>[src]

impl<'a, F: Float, D: Data<Elem = F>> Predict<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<Pr>, Dim<[usize; 1]>>> for Svm<'a, F, Pr>[src]

Predict a probability with a set of observations

impl<'a, D: Data<Elem = f64>> Predict<ArrayBase<D, Dim<[usize; 2]>>, Vec<f64, Global>> for Svm<'a, f64, f64>[src]

Predict a probability with a set of observations

impl<'a, F: Float> Predict<ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>, Pr> for Svm<'a, F, Pr>[src]

Predict a probability with a feature vector

impl<'a, F: Float, T: Targets> Predict<DatasetBase<ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>, T>, DatasetBase<ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<Pr>, Dim<[usize; 1]>>>> for Svm<'a, F, Pr>[src]

Auto Trait Implementations

impl<'a, A, T> RefUnwindSafe for Svm<'a, A, T> where
    A: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<'a, A, T> Send for Svm<'a, A, T> where
    T: Send
[src]

impl<'a, A, T> Sync for Svm<'a, A, T> where
    T: Sync
[src]

impl<'a, A, T> Unpin for Svm<'a, A, T> where
    A: Unpin,
    T: Unpin
[src]

impl<'a, A, T> UnwindSafe for Svm<'a, A, T> where
    A: RefUnwindSafe + UnwindSafe,
    T: UnwindSafe
[src]

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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,