Enum lfa::Projection[][src]

pub enum Projection {
    Dense(DenseT),
    Sparse(SparseT),
}

Projected feature vector representation.

Variants

Dense, floating-point activation vector.

Sparse, index-based activation vector.

Methods

impl Projection
[src]

Remove/set to zero one feature entry of the projection.

Compute the l1 normalisation constant of the projection.

Return the maximum number of active features in the basis space.

Expand and normalise a given projection, and convert into a raw, dense vector.

Trait Implementations

impl Approximator<Projection> for Simple
[src]

Evaluate the function and return its value.

Update the approximator's estimate for the given input.

Adapt the approximator in light of newly discovered features.

impl Approximator<Projection> for Multi
[src]

Evaluate the function and return its value.

Update the approximator's estimate for the given input.

Adapt the approximator in light of newly discovered features.

impl Debug for Projection
[src]

Formats the value using the given formatter. Read more

impl Clone for Projection
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq<Projection> for Projection
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Add<Projection> for Projection
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Index<usize> for Projection
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Into<Projection> for DenseT
[src]

Performs the conversion.

impl Into<Projection> for Vec<ActivationT>
[src]

Performs the conversion.

impl FromIterator<ActivationT> for Projection
[src]

Creates a value from an iterator. Read more

impl Into<Projection> for SparseT
[src]

Performs the conversion.

impl Into<Projection> for Vec<IndexT>
[src]

Performs the conversion.

impl FromIterator<IndexT> for Projection
[src]

Creates a value from an iterator. Read more

Auto Trait Implementations

impl Send for Projection

impl Sync for Projection