pub struct StateActionUpdate<S, A, E = f64> {
pub state: S,
pub action: A,
pub error: E,
}Fields§
§state: S§action: A§error: ETrait Implementations§
Source§impl<S: Clone, A: Clone, E: Clone> Clone for StateActionUpdate<S, A, E>
impl<S: Clone, A: Clone, E: Clone> Clone for StateActionUpdate<S, A, E>
Source§fn clone(&self) -> StateActionUpdate<S, A, E>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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>
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>
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>
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>
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>
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>
impl<'s, S, A, F, T> Handler<StateActionUpdate<&'s S, A>> for Composition<F, T>
type Response = <F as Handler<StateActionUpdate<&'s S, A>>>::Response
type Error = <F as Handler<StateActionUpdate<&'s S, A>>>::Error
fn handle( &mut self, msg: StateActionUpdate<&'s S, A, f64>, ) -> Result<Self::Response, Self::Error>
fn handle_unchecked(&mut self, msg: M) -> Self::Response
Source§impl<'s, S, A, F> Handler<StateActionUpdate<&'s S, A>> for Softmax<F>where
A: Borrow<usize>,
F: Handler<ScaledGradientUpdate<<Self as Differentiable<(&'s S, A)>>::Jacobian>>,
Self: Differentiable<(&'s S, A)>,
impl<'s, S, A, F> Handler<StateActionUpdate<&'s S, A>> for Softmax<F>where
A: Borrow<usize>,
F: Handler<ScaledGradientUpdate<<Self as Differentiable<(&'s S, A)>>::Jacobian>>,
Self: Differentiable<(&'s S, A)>,
type Response = <F as Handler<ScaledGradientUpdate<<Softmax<F> as Differentiable<(&'s S, A)>>::Jacobian>>>::Response
type Error = <F as Handler<ScaledGradientUpdate<<Softmax<F> as Differentiable<(&'s S, A)>>::Jacobian>>>::Error
fn handle( &mut self, msg: StateActionUpdate<&'s S, A>, ) -> Result<Self::Response, Self::Error>
fn handle_unchecked(&mut self, msg: M) -> Self::Response
Source§impl<'s, A, B, S, U> Handler<StateActionUpdate<&'s S, U>> for Beta<A, B>
impl<'s, A, B, S, U> Handler<StateActionUpdate<&'s S, U>> for Beta<A, B>
type Response = Response<<A as Handler<StateUpdate<&'s S>>>::Response, <B as Handler<StateUpdate<&'s S>>>::Response>
type Error = Error<<A as Handler<StateUpdate<&'s S>>>::Error, <B as Handler<StateUpdate<&'s S>>>::Error>
fn handle( &mut self, msg: StateActionUpdate<&'s S, U>, ) -> Result<Self::Response, Self::Error>
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>,
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§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>,
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§impl<S, A, B, O> Handler<StateActionUpdate<S, A>> for ScalarLFA<B, O>
impl<S, A, B, O> Handler<StateActionUpdate<S, A>> for ScalarLFA<B, O>
Source§impl<S, A, B, O> Handler<StateActionUpdate<S, A>> for VectorLFA<B, O>
impl<S, A, B, O> Handler<StateActionUpdate<S, A>> for VectorLFA<B, O>
Source§impl<S, A, F> Handler<StateActionUpdate<S, A>> for Point<F>
impl<S, A, F> Handler<StateActionUpdate<S, A>> for Point<F>
type Response = <F as Handler<StateActionUpdate<S, A>>>::Response
type Error = <F as Handler<StateActionUpdate<S, A>>>::Error
fn handle( &mut self, msg: StateActionUpdate<S, A>, ) -> Result<Self::Response, Self::Error>
fn handle_unchecked(&mut self, msg: M) -> Self::Response
Auto Trait Implementations§
impl<S, A, E> Freeze for StateActionUpdate<S, A, E>
impl<S, A, E> RefUnwindSafe for StateActionUpdate<S, A, E>
impl<S, A, E> Send for StateActionUpdate<S, A, E>
impl<S, A, E> Sync for StateActionUpdate<S, A, E>
impl<S, A, E> Unpin for StateActionUpdate<S, A, E>
impl<S, A, E> UnsafeUnpin for StateActionUpdate<S, A, E>
impl<S, A, E> UnwindSafe for StateActionUpdate<S, A, E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more