Trait relearn::envs::BuildEnv[][src]

pub trait BuildEnv {
    type Observation;
    type Action;
    type ObservationSpace: Space<Element = Self::Observation>;
    type ActionSpace: Space<Element = Self::Action>;
    type Environment: Environment<Observation = Self::Observation, Action = Self::Action> + EnvStructure<ObservationSpace = Self::ObservationSpace, ActionSpace = Self::ActionSpace>;
    fn build_env(&self, seed: u64) -> Result<Self::Environment, BuildEnvError>;
}
Expand description

Build an Environment.

Environment is an associated trait rather than a generic parameter to facilitate reproducibility: a given environment configuration can construct exactly one environment. The user does not need to store the environment type.

Associated Types

Environment observation type.

Environment action type.

Environment observation space type.

Environment action space type.

Type of environment to build

Required methods

Build an environment instance.

Args
  • seed - Seed for pseudo-randomness in the environment state and transition dynamics. The environment structure itself should not be random; seed any structural randomness from the environment configuration.

Implementors