Trait EnvDistribution

Source
pub trait EnvDistribution {
    type State;
    type Observation;
    type Action;
    type Feedback;
    type Environment: Environment<State = Self::State, Observation = Self::Observation, Action = Self::Action, Feedback = Self::Feedback>;

    // Required method
    fn sample_environment(&self, rng: &mut Prng) -> Self::Environment;
}
Expand description

A distribution of Environment sharing the same external structure.

The EnvStructure of each sampled environment must be a subset of the EnvStructure of the distribution as a whole. The discount factors must be identical. The transition dynamics of the individual environment samples may differ.

Required Associated Types§

Source

type State

Source

type Observation

Source

type Action

Source

type Feedback

Source

type Environment: Environment<State = Self::State, Observation = Self::Observation, Action = Self::Action, Feedback = Self::Feedback>

Required Methods§

Source

fn sample_environment(&self, rng: &mut Prng) -> Self::Environment

Sample an environment from the distribution.

§Args
  • rng - Random number generator used for sampling the environment structure.

Implementors§

Source§

impl EnvDistribution for DirichletRandomMdps

Source§

impl EnvDistribution for OneHotBandits

Source§

impl EnvDistribution for UniformBernoulliBandits

Source§

impl<ED, W> EnvDistribution for Wrapped<ED, W>