Trait border_core::core::base::Policy[][src]

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

Represents a policy. on an environment. It is based on a mapping from an observation to an action. The mapping can be either of deterministic or stochastic.

Required methods

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

Sample an action given an observation.

Implementors