Struct border_atari_env::BorderAtariEnv
source · pub struct BorderAtariEnv<O, A, OF, AF>where
O: Obs,
A: Act,
OF: BorderAtariObsFilter<O>,
AF: BorderAtariActFilter<A>,{ /* private fields */ }Expand description
A wrapper of atari learning environment.
Preprocessing is the same in the link: https://stable-baselines3.readthedocs.io/en/master/common/atari_wrappers.html#stable_baselines3.common.atari_wrappers.AtariWrapper.
Implementations§
source§impl<O, A, OF, AF> BorderAtariEnv<O, A, OF, AF>where
O: Obs,
A: Act,
OF: BorderAtariObsFilter<O>,
AF: BorderAtariActFilter<A>,
impl<O, A, OF, AF> BorderAtariEnv<O, A, OF, AF>where O: Obs, A: Act, OF: BorderAtariObsFilter<O>, AF: BorderAtariActFilter<A>,
Trait Implementations§
source§impl<R: ReplayBufferBase> Agent<BorderAtariEnv<BorderAtariObs, BorderAtariAct, BorderAtariObsRawFilter<BorderAtariObs>, BorderAtariActRawFilter<BorderAtariAct>>, R> for RandomAgent
impl<R: ReplayBufferBase> Agent<BorderAtariEnv<BorderAtariObs, BorderAtariAct, BorderAtariObsRawFilter<BorderAtariObs>, BorderAtariActRawFilter<BorderAtariAct>>, R> for RandomAgent
source§fn save<T: AsRef<Path>>(&self, _path: T) -> Result<()>
fn save<T: AsRef<Path>>(&self, _path: T) -> Result<()>
Save the agent in the given directory.
This method commonly creates a number of files consisting the agent
in the directory. For example, the DQN agent in
border_tch_agent crate saves
two Q-networks corresponding to the original and target networks.source§impl<O, A, OF, AF> Default for BorderAtariEnv<O, A, OF, AF>where
O: Obs,
A: Act,
OF: BorderAtariObsFilter<O>,
AF: BorderAtariActFilter<A>,
impl<O, A, OF, AF> Default for BorderAtariEnv<O, A, OF, AF>where O: Obs, A: Act, OF: BorderAtariObsFilter<O>, AF: BorderAtariActFilter<A>,
source§impl<O, A, OF, AF> Env for BorderAtariEnv<O, A, OF, AF>where
O: Obs,
A: Act,
OF: BorderAtariObsFilter<O>,
AF: BorderAtariActFilter<A>,
impl<O, A, OF, AF> Env for BorderAtariEnv<O, A, OF, AF>where O: Obs, A: Act, OF: BorderAtariObsFilter<O>, AF: BorderAtariActFilter<A>,
source§fn step_with_reset(&mut self, a: &Self::Act) -> (Step<Self>, Record)where
Self: Sized,
fn step_with_reset(&mut self, a: &Self::Act) -> (Step<Self>, Record)where Self: Sized,
Currently it supports non-vectorized environment.
§type Config = BorderAtariEnvConfig<O, A, OF, AF>
type Config = BorderAtariEnvConfig<O, A, OF, AF>
Configurations.
§type Info = NullInfo
type Info = NullInfo
Information in the self::Step object.
source§fn build(config: &Self::Config, _seed: i64) -> Result<Self>where
Self: Sized,
fn build(config: &Self::Config, _seed: i64) -> Result<Self>where Self: Sized,
Builds an environment with a given random seed.
Auto Trait Implementations§
impl<O, A, OF, AF> RefUnwindSafe for BorderAtariEnv<O, A, OF, AF>where A: RefUnwindSafe, AF: RefUnwindSafe, O: RefUnwindSafe, OF: RefUnwindSafe,
impl<O, A, OF, AF> Send for BorderAtariEnv<O, A, OF, AF>where A: Send, AF: Send, O: Send, OF: Send,
impl<O, A, OF, AF> Sync for BorderAtariEnv<O, A, OF, AF>where A: Sync, AF: Sync, O: Sync, OF: Sync,
impl<O, A, OF, AF> Unpin for BorderAtariEnv<O, A, OF, AF>where A: Unpin, AF: Unpin, O: Unpin, OF: Unpin,
impl<O, A, OF, AF> UnwindSafe for BorderAtariEnv<O, A, OF, AF>where A: UnwindSafe, AF: UnwindSafe, O: UnwindSafe, OF: 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