pub struct BorderAtariEnv<O, A, OF, AF>{ /* 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>
impl<O, A, OF, AF> BorderAtariEnv<O, A, OF, AF>
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 opt_with_record(&mut self, _buffer: &mut R) -> Record
fn opt_with_record(&mut self, _buffer: &mut R) -> Record
Performs an optimization step and returns training metrics. Read more
Source§fn save_params(&self, _path: &Path) -> Result<Vec<PathBuf>>
fn save_params(&self, _path: &Path) -> Result<Vec<PathBuf>>
Saves the agent’s parameters to the specified directory. Read more
Source§fn load_params(&mut self, _path: &Path) -> Result<()>
fn load_params(&mut self, _path: &Path) -> Result<()>
Loads the agent’s parameters from the specified directory. Read more
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Returns a mutable reference to the agent as a type-erased
Any value. Read moreSource§fn as_any_ref(&self) -> &dyn Any
fn as_any_ref(&self) -> &dyn Any
Returns a reference to the agent as a type-erased
Any value. Read moreSource§impl<O, A, OF, AF> Default for BorderAtariEnv<O, A, OF, AF>
impl<O, A, OF, AF> Default for BorderAtariEnv<O, A, OF, AF>
Source§impl<O, A, OF, AF> Env for BorderAtariEnv<O, A, OF, AF>
impl<O, A, OF, AF> Env for BorderAtariEnv<O, A, OF, AF>
Source§type Config = BorderAtariEnvConfig<O, A, OF, AF>
type Config = BorderAtariEnvConfig<O, A, OF, AF>
Configuration parameters for the environment. Read more
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 a new instance of the environment with the given configuration and random seed. Read more
Source§fn reset(&mut self, _is_done: Option<&Vec<i8>>) -> Result<Self::Obs>
fn reset(&mut self, _is_done: Option<&Vec<i8>>) -> Result<Self::Obs>
Resets the environment to its initial state. Read more
Source§fn reset_with_index(&mut self, ix: usize) -> Result<Self::Obs>
fn reset_with_index(&mut self, ix: usize) -> Result<Self::Obs>
Resets the environment with a specific index. Read more
Auto Trait Implementations§
impl<O, A, OF, AF> Freeze for BorderAtariEnv<O, A, OF, AF>
impl<O, A, OF, AF> RefUnwindSafe for BorderAtariEnv<O, A, OF, AF>
impl<O, A, OF, AF> Send for BorderAtariEnv<O, A, OF, AF>
impl<O, A, OF, AF> Sync for BorderAtariEnv<O, A, OF, AF>
impl<O, A, OF, AF> Unpin for BorderAtariEnv<O, A, OF, AF>
impl<O, A, OF, AF> UnwindSafe for BorderAtariEnv<O, A, OF, AF>
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