Struct lfa::Linear
[−]
[src]
pub struct Linear<I: ?Sized, P: Projector<I>> { pub projector: P, pub weights: Matrix, // some fields omitted }
Fields
projector: P
weights: Matrix
Methods
impl<I: ?Sized, P: Projector<I>> Linear<I, P>
[src]
fn new(projector: P, n_outputs: usize) -> Self
[src]
fn assign(&mut self, values: Matrix<f64>)
[src]
fn assign_cols(&mut self, values: Vector<f64>)
[src]
fn evaluate_full(&self, p: &Projection) -> Vector<f64>
[src]
fn update_full(&mut self, p: &Projection, errors: Vector<f64>)
[src]
fn evaluate_column(&self, p: &Projection, col: usize) -> f64
[src]
fn update_column(&mut self, p: &Projection, col: usize, error: f64)
[src]
Trait Implementations
impl<I: Clone + ?Sized, P: Clone + Projector<I>> Clone for Linear<I, P>
[src]
fn clone(&self) -> Linear<I, P>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<I: ?Sized, P: Projector<I>> Function<I, f64> for Linear<I, P>
[src]
fn evaluate(&self, input: &I) -> EvaluationResult<f64>
[src]
Evaluates the function and returns its output.
impl<I: ?Sized, P: Projector<I>> Function<I, Vector<f64>> for Linear<I, P>
[src]
fn evaluate(&self, input: &I) -> EvaluationResult<Vector<f64>>
[src]
Evaluates the function and returns its output.