Trait Policy

Source
pub trait Policy<E: Env> {
    // Required method
    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.

Required Methods§

Source

fn sample(&mut self, obs: &E::Obs) -> E::Act

Sample an action given an observation.

Implementors§