pub struct ActorCritic<C, P> {
pub critic: C,
pub policy: P,
pub alpha: f64,
}Fields§
§critic: C§policy: P§alpha: f64Implementations§
Source§impl<Q, P> ActorCritic<QCritic<Q>, P>
impl<Q, P> ActorCritic<QCritic<Q>, P>
Trait Implementations§
Source§impl<C: Clone, P: Clone> Clone for ActorCritic<C, P>
impl<C: Clone, P: Clone> Clone for ActorCritic<C, P>
Source§fn clone(&self) -> ActorCritic<C, P>
fn clone(&self) -> ActorCritic<C, P>
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<'m, S, C, P> Handler<&'m Transition<S, <P as Policy<&'m S>>::Action>> for ActorCritic<C, P>
impl<'m, S, C, P> Handler<&'m Transition<S, <P as Policy<&'m S>>::Action>> for ActorCritic<C, P>
type Response = <P as Handler<StateActionUpdate<&'m S, &'m <P as Policy<&'m S>>::Action>>>::Response
type Error = <P as Handler<StateActionUpdate<&'m S, &'m <P as Policy<&'m S>>::Action>>>::Error
fn handle( &mut self, t: &'m Transition<S, P::Action>, ) -> Result<Self::Response, Self::Error>
fn handle_unchecked(&mut self, msg: M) -> Self::Response
Auto Trait Implementations§
impl<C, P> Freeze for ActorCritic<C, P>
impl<C, P> RefUnwindSafe for ActorCritic<C, P>where
C: RefUnwindSafe,
P: RefUnwindSafe,
impl<C, P> Send for ActorCritic<C, P>
impl<C, P> Sync for ActorCritic<C, P>
impl<C, P> Unpin for ActorCritic<C, P>
impl<C, P> UnsafeUnpin for ActorCritic<C, P>where
C: UnsafeUnpin,
P: UnsafeUnpin,
impl<C, P> UnwindSafe for ActorCritic<C, P>where
C: UnwindSafe,
P: UnwindSafe,
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