Struct SVRParameters

Source
pub struct SVRParameters<T: Number + FloatNumber + PartialOrd> {
    pub eps: T,
    pub c: T,
    pub tol: T,
    pub kernel: Option<Box<dyn Kernel>>,
}
Expand description

SVR Parameters

Fields§

§eps: T

Epsilon in the epsilon-SVR model.

§c: T

Regularization parameter.

§tol: T

Tolerance for stopping criterion.

§kernel: Option<Box<dyn Kernel>>

The kernel function.

Implementations§

Source§

impl<T: Number + FloatNumber + PartialOrd> SVRParameters<T>

Source

pub fn with_eps(self, eps: T) -> Self

Epsilon in the epsilon-SVR model.

Source

pub fn with_c(self, c: T) -> Self

Regularization parameter.

Source

pub fn with_tol(self, tol: T) -> Self

Tolerance for stopping criterion.

Source

pub fn with_kernel<K: Kernel + 'static>(self, kernel: K) -> Self

The kernel function.

Trait Implementations§

Source§

impl<T: Debug + Number + FloatNumber + PartialOrd> Debug for SVRParameters<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Number + FloatNumber + PartialOrd> Default for SVRParameters<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'a, T: Number + FloatNumber + PartialOrd, X: Array2<T>, Y: Array1<T>> SupervisedEstimatorBorrow<'a, X, Y, SVRParameters<T>> for SVR<'a, T, X, Y>

Source§

fn new() -> Self

Empty constructor, instantiate an empty estimator. Object is dropped as soon as fit() is called. used to pass around the correct fit() implementation. by calling ::fit(). mostly used to be used with model_selection::cross_validate(...)
Source§

fn fit( x: &'a X, y: &'a Y, parameters: &'a SVRParameters<T>, ) -> Result<Self, Failed>

Fit a model to a training dataset, estimate model’s parameters. Read more

Auto Trait Implementations§

§

impl<T> Freeze for SVRParameters<T>
where T: Freeze,

§

impl<T> !RefUnwindSafe for SVRParameters<T>

§

impl<T> !Send for SVRParameters<T>

§

impl<T> !Sync for SVRParameters<T>

§

impl<T> Unpin for SVRParameters<T>
where T: Unpin,

§

impl<T> !UnwindSafe for SVRParameters<T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.