Struct vikos::model::Logistic
[−]
[src]
pub struct Logistic<V: Vector>(_);
Models target as y = 1/(1+e^(m * x + c))
Trait Implementations
impl<V: Debug + Vector> Debug for Logistic<V>
[src]
impl<V: Clone + Vector> Clone for Logistic<V>
[src]
fn clone(&self) -> Logistic<V>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<V: Default + Vector> Default for Logistic<V>
[src]
impl<V: Decodable + Vector> Decodable for Logistic<V>
[src]
impl<V: Encodable + Vector> Encodable for Logistic<V>
[src]
impl<V> Model for Logistic<V> where V: Vector<Scalar=f64>
[src]
type Input = V
Input features
fn predict(&self, input: &V) -> f64
Predicts a target for the inputs based on the internal coefficents
fn num_coefficents(&self) -> usize
The number of internal coefficents this model depends on
fn gradient(&self, coefficent: usize, input: &V) -> f64
Value predict derived by the n-th coefficent
at input
fn coefficent(&mut self, coefficent: usize) -> &mut f64
Mutable reference to the n-th coefficent