[−][src]Struct lfa::LFA
Linear function approximator.
Fields
projector: P
evaluator: E
Methods
impl<P: Space> LFA<P, ScalarFunction>
[src]
impl<P: Space> LFA<P, PairFunction>
[src]
impl<P: Space> LFA<P, TripleFunction>
[src]
impl<P, E> LFA<P, E>
[src]
impl<P: Space> LFA<P, VectorFunction>
[src]
Trait Implementations
impl<I: ?Sized, P, E> Approximator<I> for LFA<P, E> where
P: Projector<I>,
E: Approximator<Projection>,
[src]
P: Projector<I>,
E: Approximator<Projection>,
type Value = E::Value
fn n_outputs(&self) -> usize
[src]
fn evaluate(&self, input: &I) -> EvaluationResult<Self::Value>
[src]
fn update(&mut self, input: &I, update: Self::Value) -> UpdateResult<()>
[src]
fn adapt(
&mut self,
new_features: &HashMap<IndexT, IndexSet>
) -> AdaptResult<usize>
[src]
&mut self,
new_features: &HashMap<IndexT, IndexSet>
) -> AdaptResult<usize>
impl<P, E: Parameterised> Parameterised for LFA<P, E>
[src]
impl<P: Space> From<P> for LFA<P, ScalarFunction>
[src]
impl<P: Space> From<P> for LFA<P, PairFunction>
[src]
impl<P: Space> From<P> for LFA<P, TripleFunction>
[src]
impl<P: Clone, E: Clone> Clone for LFA<P, E>
[src]
fn clone(&self) -> LFA<P, E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<P: Debug, E: Debug> Debug for LFA<P, E>
[src]
impl<'de, P, E> Deserialize<'de> for LFA<P, E> where
P: Deserialize<'de>,
E: Deserialize<'de>,
[src]
P: Deserialize<'de>,
E: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<P, E> Serialize for LFA<P, E> where
P: Serialize,
E: Serialize,
[src]
P: Serialize,
E: Serialize,
Auto Trait Implementations
impl<P, E> Send for LFA<P, E> where
E: Send,
P: Send,
E: Send,
P: Send,
impl<P, E> Sync for LFA<P, E> where
E: Sync,
P: Sync,
E: Sync,
P: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,