Trait rsrl::fa::Approximator

source ·
pub trait Approximator<I>where
    I: ?Sized,
{ type Value; fn evaluate(&self, input: &I) -> Result<Self::Value, EvaluationError>; fn update(
        &mut self,
        input: &I,
        update: Self::Value
    ) -> Result<(), UpdateError>; fn adapt(
        &mut self,
        new_features: &HashMap<usize, BTreeSet<usize, Global>, RandomState>
    ) -> Result<usize, AdaptError> { ... } }
Expand description

An interface for function approximators.

Required Associated Types§

Required Methods§

Evaluate the function and return its value.

Update the approximator’s estimate for the given input.

Provided Methods§

Adapt the approximator in light of newly discovered features.

Implementations on Foreign Types§

Implementors§