Enum lfa::Projection
source · Expand description
Projected feature vector representation.
Variants§
Dense(DenseT)
Dense, floating-point activation vector.
Sparse(SparseT)
Sparse, index-based activation vector.
Implementations§
Trait Implementations§
source§impl Add<Projection> for Projection
impl Add<Projection> for Projection
§type Output = Projection
type Output = Projection
The resulting type after applying the
+
operator.source§fn add(self, rhs: Projection) -> Projection
fn add(self, rhs: Projection) -> Projection
Performs the
+
operation. Read moresource§impl Approximator<Projection> for ScalarFunction
impl Approximator<Projection> for ScalarFunction
type Value = f64
source§fn evaluate(&self, p: &Projection) -> EvaluationResult<f64>
fn evaluate(&self, p: &Projection) -> EvaluationResult<f64>
Evaluate the function and return its value.
source§fn update(&mut self, p: &Projection, error: f64) -> UpdateResult<()>
fn update(&mut self, p: &Projection, error: f64) -> UpdateResult<()>
Update the approximator’s estimate for the given input.
source§impl Approximator<Projection> for VectorFunction
impl Approximator<Projection> for VectorFunction
type Value = ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>
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 Projection
impl Clone for Projection
source§fn clone(&self) -> Projection
fn clone(&self) -> Projection
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 Debug for Projection
impl Debug for Projection
source§impl<'de> Deserialize<'de> for Projection
impl<'de> Deserialize<'de> for Projection
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
source§impl FromIterator<f64> for Projection
impl FromIterator<f64> for Projection
source§fn from_iter<I: IntoIterator<Item = ActivationT>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = ActivationT>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl FromIterator<usize> for Projection
impl FromIterator<usize> for Projection
source§impl Index<usize> for Projection
impl Index<usize> for Projection
source§impl Into<Projection> for DenseT
impl Into<Projection> for DenseT
source§fn into(self) -> Projection
fn into(self) -> Projection
Converts this type into the (usually inferred) input type.
source§impl Into<Projection> for SparseT
impl Into<Projection> for SparseT
source§fn into(self) -> Projection
fn into(self) -> Projection
Converts this type into the (usually inferred) input type.
source§impl Into<Projection> for Vec<ActivationT>
impl Into<Projection> for Vec<ActivationT>
source§fn into(self) -> Projection
fn into(self) -> Projection
Converts this type into the (usually inferred) input type.
source§impl Into<Projection> for Vec<IndexT>
impl Into<Projection> for Vec<IndexT>
source§fn into(self) -> Projection
fn into(self) -> Projection
Converts this type into the (usually inferred) input type.