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.