Skip to main content

StateActionUpdate

Struct StateActionUpdate 

Source
pub struct StateActionUpdate<S, A, E = f64> {
    pub state: S,
    pub action: A,
    pub error: E,
}

Fields§

§state: S§action: A§error: E

Trait Implementations§

Source§

impl<S: Clone, A: Clone, E: Clone> Clone for StateActionUpdate<S, A, E>

Source§

fn clone(&self) -> StateActionUpdate<S, A, E>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<S: Debug, A: Debug, E: Debug> Debug for StateActionUpdate<S, A, E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'s, 'a, S, P1, P2> Handler<StateActionUpdate<&'s S, &'a (<P1 as Policy<(&'s S,)>>::Action, <P2 as Policy<(&'s S,)>>::Action)>> for IPP<P1, P2>
where P1: Policy<(&'s S,)> + Handler<StateActionUpdate<&'s S, &'a <P1 as Policy<(&'s S,)>>::Action>>, P2: Policy<(&'s S,)> + Handler<StateActionUpdate<&'s S, &'a <P2 as Policy<(&'s S,)>>::Action>>,

Source§

type Response = Response<<P1 as Handler<StateActionUpdate<&'s S, &'a <P1 as Policy<(&'s S,)>>::Action>>>::Response, <P2 as Handler<StateActionUpdate<&'s S, &'a <P2 as Policy<(&'s S,)>>::Action>>>::Response>

Source§

type Error = Error<<P1 as Handler<StateActionUpdate<&'s S, &'a <P1 as Policy<(&'s S,)>>::Action>>>::Error, <P2 as Handler<StateActionUpdate<&'s S, &'a <P2 as Policy<(&'s S,)>>::Action>>>::Error>

Source§

fn handle( &mut self, msg: StateActionUpdate<&'s S, &'a (<P1 as Policy<(&'s S,)>>::Action, <P2 as Policy<(&'s S,)>>::Action)>, ) -> Result<Self::Response, Self::Error>

Source§

fn handle_unchecked(&mut self, msg: M) -> Self::Response

Source§

impl<'s, S, A, F, T> Handler<StateActionUpdate<&'s S, A>> for Composition<F, T>
where A: Borrow<f64>, F: Differentiable<(&'s S, f64), Output = f64> + Handler<StateActionUpdate<&'s S, A, f64>>, T: Transform<f64, Output = f64>,

Source§

type Response = <F as Handler<StateActionUpdate<&'s S, A>>>::Response

Source§

type Error = <F as Handler<StateActionUpdate<&'s S, A>>>::Error

Source§

fn handle( &mut self, msg: StateActionUpdate<&'s S, A, f64>, ) -> Result<Self::Response, Self::Error>

Source§

fn handle_unchecked(&mut self, msg: M) -> Self::Response

Source§

impl<'s, S, A, F> Handler<StateActionUpdate<&'s S, A>> for Softmax<F>

Source§

impl<'s, A, B, S, U> Handler<StateActionUpdate<&'s S, U>> for Beta<A, B>
where U: Borrow<f64>, A: Function<(&'s S,), Output = f64> + Handler<StateUpdate<&'s S, f64>>, B: Function<(&'s S,), Output = f64> + Handler<StateUpdate<&'s S, f64>>,

Source§

type Response = Response<<A as Handler<StateUpdate<&'s S>>>::Response, <B as Handler<StateUpdate<&'s S>>>::Response>

Source§

type Error = Error<<A as Handler<StateUpdate<&'s S>>>::Error, <B as Handler<StateUpdate<&'s S>>>::Error>

Source§

fn handle( &mut self, msg: StateActionUpdate<&'s S, U>, ) -> Result<Self::Response, Self::Error>

Source§

fn handle_unchecked(&mut self, msg: M) -> Self::Response

Source§

impl<'x, X, A, M, S> Handler<StateActionUpdate<&'x X, A>> for Gaussian<M, S>
where A: Borrow<f64>, M: Parameterised + Differentiable<(&'x X,), Output = f64>, S: Parameterised + Differentiable<(&'x X,), Output = f64>, M::Jacobian: Buffer<Dim = Ix1>, S::Jacobian: Buffer<Dim = Ix1>, Builder: BuildNormal<M::Output, S::Output>, <<Builder as BuildNormal<M::Output, S::Output>>::Normal as Distribution>::Support: Space<Value = M::Output>,

Source§

type Response = ()

Source§

type Error = ()

Source§

fn handle( &mut self, msg: StateActionUpdate<&'x X, A>, ) -> Result<Self::Response, Self::Error>

Source§

fn handle_unchecked(&mut self, msg: M) -> Self::Response

Source§

impl<'x, X, A, M> Handler<StateActionUpdate<&'x X, A>> for Gaussian<M, f64>
where A: Borrow<f64>, M: Parameterised + Differentiable<(&'x X,), Output = f64>, M::Jacobian: Buffer<Dim = Ix1>, Builder: BuildNormal<M::Output, f64>, <<Builder as BuildNormal<M::Output, f64>>::Normal as Distribution>::Support: Space<Value = M::Output>,

Source§

type Response = ()

Source§

type Error = ()

Source§

fn handle( &mut self, msg: StateActionUpdate<&'x X, A>, ) -> Result<Self::Response, Self::Error>

Source§

fn handle_unchecked(&mut self, msg: M) -> Self::Response

Source§

impl<S, A, B, O> Handler<StateActionUpdate<S, A>> for ScalarLFA<B, O>
where B: Basis<(S, A), Value = Features>, O: Optimiser,

Source§

type Response = ()

Source§

type Error = Error

Source§

fn handle(&mut self, msg: StateActionUpdate<S, A, f64>) -> Result<()>

Source§

fn handle_unchecked(&mut self, msg: M) -> Self::Response

Source§

impl<S, A, B, O> Handler<StateActionUpdate<S, A>> for VectorLFA<B, O>
where A: Borrow<usize>, B: Basis<S, Value = Features>, O: Optimiser,

Source§

type Response = ()

Source§

type Error = Error

Source§

fn handle(&mut self, msg: StateActionUpdate<S, A, f64>) -> Result<()>

Source§

fn handle_unchecked(&mut self, msg: M) -> Self::Response

Source§

impl<S, A, F> Handler<StateActionUpdate<S, A>> for Point<F>
where A: Borrow<f64>, F: for<'s> Function<(&'s S,), Output = f64> + Handler<StateActionUpdate<S, A>>,

Source§

type Response = <F as Handler<StateActionUpdate<S, A>>>::Response

Source§

type Error = <F as Handler<StateActionUpdate<S, A>>>::Error

Source§

fn handle( &mut self, msg: StateActionUpdate<S, A>, ) -> Result<Self::Response, Self::Error>

Source§

fn handle_unchecked(&mut self, msg: M) -> Self::Response

Source§

impl<S: Borrow<usize>, A: Borrow<usize>> Handler<StateActionUpdate<S, A>> for Table<Array2<f64>>

Source§

type Response = Response

Source§

type Error = Error

Source§

fn handle( &mut self, msg: StateActionUpdate<S, A>, ) -> Result<Self::Response, Self::Error>

Source§

fn handle_unchecked(&mut self, msg: M) -> Self::Response

Auto Trait Implementations§

§

impl<S, A, E> Freeze for StateActionUpdate<S, A, E>
where S: Freeze, A: Freeze, E: Freeze,

§

impl<S, A, E> RefUnwindSafe for StateActionUpdate<S, A, E>

§

impl<S, A, E> Send for StateActionUpdate<S, A, E>
where S: Send, A: Send, E: Send,

§

impl<S, A, E> Sync for StateActionUpdate<S, A, E>
where S: Sync, A: Sync, E: Sync,

§

impl<S, A, E> Unpin for StateActionUpdate<S, A, E>
where S: Unpin, A: Unpin, E: Unpin,

§

impl<S, A, E> UnsafeUnpin for StateActionUpdate<S, A, E>

§

impl<S, A, E> UnwindSafe for StateActionUpdate<S, A, E>
where S: UnwindSafe, A: UnwindSafe, E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<M> Message for M