Struct border_atari_env::util::test::RandomAgent
source · pub struct RandomAgent { /* private fields */ }Expand description
A random policy.
Implementations§
source§impl RandomAgent
impl RandomAgent
sourcepub fn n_opts_steps(&self) -> usize
pub fn n_opts_steps(&self) -> usize
Returns the number of optimization steps;
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.Auto Trait Implementations§
impl RefUnwindSafe for RandomAgent
impl Send for RandomAgent
impl Sync for RandomAgent
impl Unpin for RandomAgent
impl UnwindSafe for RandomAgent
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