Skip to main content

SvrQ

Struct SvrQ 

Source
pub struct SvrQ<'a> { /* private fields */ }
Expand description

Q matrix for ε-SVR and ν-SVR regression.

The regression dual has 2l variables (α_i^+ and α_i^-). The underlying kernel cache stores only l rows of actual kernel evaluations; get_q reorders/signs them into a double-buffered output.

Implementations§

Source§

impl<'a> SvrQ<'a>

Source

pub fn new(x: &'a [Vec<SvmNode>], param: &SvmParameter) -> Self

Trait Implementations§

Source§

impl<'a> QMatrix for SvrQ<'a>

Source§

fn get_q(&mut self, i: usize, len: usize) -> &[Qfloat]

Get column i of the Q matrix, with at least len elements.
Source§

fn get_qd(&self) -> &[f64]

Get the diagonal of Q: QD[i] = Q[i][i].
Source§

fn swap_index(&mut self, i: usize, j: usize)

Swap indices i and j in all internal data structures.

Auto Trait Implementations§

§

impl<'a> Freeze for SvrQ<'a>

§

impl<'a> RefUnwindSafe for SvrQ<'a>

§

impl<'a> Send for SvrQ<'a>

§

impl<'a> Sync for SvrQ<'a>

§

impl<'a> Unpin for SvrQ<'a>

§

impl<'a> UnwindSafe for SvrQ<'a>

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.