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

Opens window for display.

Returns the number of actions.

Trait Implementations

Set the policy to training mode.

Set the policy to evaluation mode.

Return if it is in training mode.

Do an optimization step.

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. Read more

Load the agent from the given directory.

Returns the “default value” for a type. Read more

Currently it supports non-vectorized environment.

Configurations.

Observation of the environment.

Action of the environment.

Information in the self::Step object.

Builds an environment with a given random seed.

Resets the environment if is_done[0] == 1. or is_done.is_none(). Read more

Performes an environment step.

Configuration of the policy.

Builds the policy.

Sample an action given an observation.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.