pub trait Policy<E: Env> {
    type Config: Clone;
    fn build(config: Self::Config) -> Self;
fn sample(&mut self, obs: &E::Obs) -> E::Act; }
Expand description

A policy on an environment.

Policy is a mapping from an observation to an action. The mapping can be either of deterministic or stochastic.

Associated Types

Configuration of the policy.

Required methods

Builds the policy.

Sample an action given an observation.

Implementors