[−][src]Struct linfa_svm::Svm
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]
pub fn predict(
&self,
data: &'a DatasetBase<ArrayBase<D, Ix2>, T>
) -> DatasetBase<ArrayView2<'a, F>, Array1<Pr>>
[src]
&self,
data: &'a DatasetBase<ArrayBase<D, Ix2>, T>
) -> DatasetBase<ArrayView2<'a, F>, Array1<Pr>>
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]
pub fn predict(
&self,
data: DatasetBase<Array2<F>, T>
) -> DatasetBase<Array2<F>, Array1<Pr>>
[src]
&self,
data: DatasetBase<Array2<F>, T>
) -> DatasetBase<Array2<F>, Array1<Pr>>
Auto Trait Implementations
impl<'a, A, T> RefUnwindSafe for Svm<'a, A, T> where
A: RefUnwindSafe,
T: RefUnwindSafe,
[src]
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, A, T> Send for Svm<'a, A, T> where
T: Send,
[src]
T: Send,
impl<'a, A, T> Sync for Svm<'a, A, T> where
T: Sync,
[src]
T: Sync,
impl<'a, A, T> Unpin for Svm<'a, A, T> where
A: Unpin,
T: Unpin,
[src]
A: Unpin,
T: Unpin,
impl<'a, A, T> UnwindSafe for Svm<'a, A, T> where
A: RefUnwindSafe + UnwindSafe,
T: UnwindSafe,
[src]
A: RefUnwindSafe + UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,