Function border_core::core::util::sample [−][src]
pub fn sample<E: Env, P: Policy<E>>(
env: &mut E,
policy: &mut P,
obs_prev: &RefCell<Option<E::Obs>>
) -> (Step<E>, Record)
Expand description
Takes an action based on the policy and apply it to the environment.
It returns crate::core::base::Step object.