pub struct AgentEnvBaseLoop<B: Backend, RLC: RLComponentsTypes> { /* private fields */ }Available on crate feature
rl only.Expand description
A simple, synchronized agent/environement interface.
Implementations§
Trait Implementations§
Source§impl<BT, RLC> AgentEnvLoop<BT, RLC> for AgentEnvBaseLoop<BT, RLC>where
BT: Backend,
RLC: RLComponentsTypes,
impl<BT, RLC> AgentEnvLoop<BT, RLC> for AgentEnvBaseLoop<BT, RLC>where
BT: Backend,
RLC: RLComponentsTypes,
Source§fn run_steps(
&mut self,
num_steps: usize,
processor: &mut RLEventProcessorType<RLC>,
interrupter: &Interrupter,
progress: &mut Progress,
) -> Vec<TimeStep<BT, <RLC as RLComponentsTypes>::State, <RLC as RLComponentsTypes>::Action, <RLC as RLComponentsTypes>::ActionContext>>
fn run_steps( &mut self, num_steps: usize, processor: &mut RLEventProcessorType<RLC>, interrupter: &Interrupter, progress: &mut Progress, ) -> Vec<TimeStep<BT, <RLC as RLComponentsTypes>::State, <RLC as RLComponentsTypes>::Action, <RLC as RLComponentsTypes>::ActionContext>>
Run a certain number of timesteps. Read more
Source§fn update_policy(&mut self, update: RLC::PolicyState)
fn update_policy(&mut self, update: RLC::PolicyState)
Update the runner’s agent.
Source§fn run_episodes(
&mut self,
num_episodes: usize,
processor: &mut RLEventProcessorType<RLC>,
interrupter: &Interrupter,
progress: &mut Progress,
) -> Vec<Trajectory<BT, <RLC as RLComponentsTypes>::State, <RLC as RLComponentsTypes>::Action, <RLC as RLComponentsTypes>::ActionContext>>
fn run_episodes( &mut self, num_episodes: usize, processor: &mut RLEventProcessorType<RLC>, interrupter: &Interrupter, progress: &mut Progress, ) -> Vec<Trajectory<BT, <RLC as RLComponentsTypes>::State, <RLC as RLComponentsTypes>::Action, <RLC as RLComponentsTypes>::ActionContext>>
Run a certain number of episodes. Read more
Source§fn policy(&self) -> RLC::PolicyState
fn policy(&self) -> RLC::PolicyState
Get the state of the runner’s agent.
Auto Trait Implementations§
impl<B, RLC> Freeze for AgentEnvBaseLoop<B, RLC>
impl<B, RLC> RefUnwindSafe for AgentEnvBaseLoop<B, RLC>where
<RLC as RLComponentsTypes>::Env: RefUnwindSafe,
<RLC as RLComponentsTypes>::Policy: RefUnwindSafe,
B: RefUnwindSafe,
impl<B, RLC> Send for AgentEnvBaseLoop<B, RLC>
impl<B, RLC> Sync for AgentEnvBaseLoop<B, RLC>
impl<B, RLC> Unpin for AgentEnvBaseLoop<B, RLC>
impl<B, RLC> UnsafeUnpin for AgentEnvBaseLoop<B, RLC>where
<RLC as RLComponentsTypes>::Env: UnsafeUnpin,
<RLC as RLComponentsTypes>::Policy: UnsafeUnpin,
impl<B, RLC> UnwindSafe for AgentEnvBaseLoop<B, RLC>where
<RLC as RLComponentsTypes>::Env: UnwindSafe,
<RLC as RLComponentsTypes>::Policy: UnwindSafe,
B: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more