Trait renforce::environment::Environment [] [src]

pub trait Environment {
    type State: Space;
    type Action: Space;
    fn state_space(&self) -> Self::State;
    fn action_space(&self) -> Self::Action;
    fn step(&mut self,
            action: &Self::Action::Element)
            -> Observation<Self::State>; fn reset(&mut self) -> Observation<Self::State>; fn render(&self); }

Environment Trait

Represents an interactive environment

Associated Types

The type of State Space used by this Environment

The type of Action Space used by this Environment

Required Methods

Returns the state space used by this Environment

Returns the action space used by this Environment

Performs action in environment and returns the observed result

Resets the environment to its initial configuration

Displays the environment

Implementors