[][src]Struct smartcore::svm::svc::SVC

pub struct SVC<T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> { /* fields omitted */ }

Support Vector Classifier

Implementations

impl<T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> SVC<T, M, K>[src]

pub fn fit(
    x: &M,
    y: &M::RowVector,
    parameters: SVCParameters<T, M, K>
) -> Result<SVC<T, M, K>, Failed>
[src]

Fits SVC to your data.

  • x - NxM matrix with N observations and M features in each observation.
  • y - class labels
  • parameters - optional parameters, use Default::default() to set parameters to default values.

pub fn predict(&self, x: &M) -> Result<M::RowVector, Failed>[src]

Predicts estimated class labels from x

  • x - KxM data where K is number of observations and M is number of features.

Trait Implementations

impl<T: Debug + RealNumber, M: Debug + Matrix<T>, K: Debug + Kernel<T, M::RowVector>> Debug for SVC<T, M, K> where
    M::RowVector: Debug
[src]

impl<'de, T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> Deserialize<'de> for SVC<T, M, K> where
    M::RowVector: Deserialize<'de>,
    K: Deserialize<'de>,
    T: Deserialize<'de>, 
[src]

impl<T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> PartialEq<SVC<T, M, K>> for SVC<T, M, K>[src]

impl<T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> Predictor<M, <M as BaseMatrix<T>>::RowVector> for SVC<T, M, K>[src]

impl<T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> Serialize for SVC<T, M, K> where
    M::RowVector: Serialize,
    K: Serialize,
    T: Serialize
[src]

impl<T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> SupervisedEstimator<M, <M as BaseMatrix<T>>::RowVector, SVCParameters<T, M, K>> for SVC<T, M, K>[src]

Auto Trait Implementations

impl<T, M, K> RefUnwindSafe for SVC<T, M, K> where
    K: RefUnwindSafe,
    T: RefUnwindSafe,
    <M as BaseMatrix<T>>::RowVector: RefUnwindSafe
[src]

impl<T, M, K> Send for SVC<T, M, K> where
    K: Send,
    T: Send,
    <M as BaseMatrix<T>>::RowVector: Send
[src]

impl<T, M, K> Sync for SVC<T, M, K> where
    K: Sync,
    T: Sync,
    <M as BaseMatrix<T>>::RowVector: Sync
[src]

impl<T, M, K> Unpin for SVC<T, M, K> where
    K: Unpin,
    T: Unpin,
    <M as BaseMatrix<T>>::RowVector: Unpin
[src]

impl<T, M, K> UnwindSafe for SVC<T, M, K> where
    K: UnwindSafe,
    T: UnwindSafe,
    <M as BaseMatrix<T>>::RowVector: 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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>,