[−][src]Struct smartcore::svm::svc::SVC
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]
x: &M,
y: &M::RowVector,
parameters: SVCParameters<T, M, K>
) -> Result<SVC<T, M, K>, Failed>
Fits SVC to your data.
x
- NxM matrix with N observations and M features in each observation.y
- class labelsparameters
- optional parameters, useDefault::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]
M::RowVector: Debug,
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]
M::RowVector: Deserialize<'de>,
K: Deserialize<'de>,
T: Deserialize<'de>,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> PartialEq<SVC<T, M, K>> for SVC<T, M, K>
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
M::RowVector: Serialize,
K: Serialize,
T: Serialize,
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
K: RefUnwindSafe,
T: RefUnwindSafe,
<M as BaseMatrix<T>>::RowVector: RefUnwindSafe,
impl<T, M, K> Send for SVC<T, M, K> where
K: Send,
T: Send,
<M as BaseMatrix<T>>::RowVector: Send,
[src]
K: Send,
T: Send,
<M as BaseMatrix<T>>::RowVector: Send,
impl<T, M, K> Sync for SVC<T, M, K> where
K: Sync,
T: Sync,
<M as BaseMatrix<T>>::RowVector: Sync,
[src]
K: Sync,
T: Sync,
<M as BaseMatrix<T>>::RowVector: Sync,
impl<T, M, K> Unpin for SVC<T, M, K> where
K: Unpin,
T: Unpin,
<M as BaseMatrix<T>>::RowVector: Unpin,
[src]
K: Unpin,
T: Unpin,
<M as BaseMatrix<T>>::RowVector: Unpin,
impl<T, M, K> UnwindSafe for SVC<T, M, K> where
K: UnwindSafe,
T: UnwindSafe,
<M as BaseMatrix<T>>::RowVector: UnwindSafe,
[src]
K: UnwindSafe,
T: UnwindSafe,
<M as BaseMatrix<T>>::RowVector: 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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,