[][src]Struct smartcore::svm::svr::SVR

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

Epsilon-Support Vector Regression

Implementations

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

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

Fits SVR to your data.

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

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

Predict target values 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 SVR<T, M, K> where
    M::RowVector: Debug
[src]

impl<'de, T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> Deserialize<'de> for SVR<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<SVR<T, M, K>> for SVR<T, M, K>[src]

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

impl<T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> Serialize for SVR<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, SVRParameters<T, M, K>> for SVR<T, M, K>[src]

Auto Trait Implementations

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

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

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

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

impl<T, M, K> UnwindSafe for SVR<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>,