pub struct MultiAgentEnvLoop<BT: Backend, RLC: RLComponentsTypes> { /* private fields */ }Available on crate feature
rl only.Expand description
An asynchronous runner for multiple agent/environement interfaces.
Implementations§
Source§impl<BT: Backend, RLC: RLComponentsTypes> MultiAgentEnvLoop<BT, RLC>
impl<BT: Backend, RLC: RLComponentsTypes> MultiAgentEnvLoop<BT, RLC>
Trait Implementations§
Source§impl<BT, RLC> AgentEnvLoop<BT, RLC> for MultiAgentEnvLoop<BT, RLC>where
BT: Backend,
RLC: RLComponentsTypes,
impl<BT, RLC> AgentEnvLoop<BT, RLC> for MultiAgentEnvLoop<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<BT, RLC> Freeze for MultiAgentEnvLoop<BT, RLC>
impl<BT, RLC> RefUnwindSafe for MultiAgentEnvLoop<BT, RLC>
impl<BT, RLC> Send for MultiAgentEnvLoop<BT, RLC>
impl<BT, RLC> !Sync for MultiAgentEnvLoop<BT, RLC>
impl<BT, RLC> Unpin for MultiAgentEnvLoop<BT, RLC>
impl<BT, RLC> UnsafeUnpin for MultiAgentEnvLoop<BT, RLC>
impl<BT, RLC> UnwindSafe for MultiAgentEnvLoop<BT, RLC>
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