Struct lfa::approximators::VectorFunction
source · Expand description
Weight-Projection
evaluator with vector Vector<f64>
output.
Fields§
§weights: Matrix<f64>
Implementations§
Trait Implementations§
source§impl Approximator<Projection> for VectorFunction
impl Approximator<Projection> for VectorFunction
type Value = ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>
source§fn n_outputs(&self) -> usize
fn n_outputs(&self) -> usize
Return the dimensionality of the output value
Approximator::Value
.source§fn evaluate(&self, p: &Projection) -> EvaluationResult<Vector<f64>>
fn evaluate(&self, p: &Projection) -> EvaluationResult<Vector<f64>>
Evaluate the function and return its value.
source§fn update(&mut self, p: &Projection, errors: Vector<f64>) -> UpdateResult<()>
fn update(&mut self, p: &Projection, errors: Vector<f64>) -> UpdateResult<()>
Update the approximator’s estimate for the given input.
source§impl Clone for VectorFunction
impl Clone for VectorFunction
source§fn clone(&self) -> VectorFunction
fn clone(&self) -> VectorFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for VectorFunction
impl<'de> Deserialize<'de> for VectorFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more