Struct vikos::model::Linear [] [src]

pub struct Linear<V: Vector> {
    pub m: V,
    pub c: V::Scalar,
}

Models the target as y = m * x + c

Fields

Slope

Offset

Trait Implementations

impl<V: Debug + Vector> Debug for Linear<V> where V::Scalar: Debug
[src]

Formats the value using the given formatter.

impl<V: Clone + Vector> Clone for Linear<V> where V::Scalar: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<V: Default + Vector> Default for Linear<V> where V::Scalar: Default
[src]

Returns the "default value" for a type. Read more

impl<V: Decodable + Vector> Decodable for Linear<V> where V::Scalar: Decodable
[src]

impl<V: Encodable + Vector> Encodable for Linear<V> where V::Scalar: Encodable
[src]

impl<V> Model for Linear<V> where V: Vector<Scalar=f64>
[src]

Input features

Predicts a target for the inputs based on the internal coefficents

The number of internal coefficents this model depends on

Value predict derived by the n-th coefficent at input

Mutable reference to the n-th coefficent