Trait renforce::model::DeterministicModel [] [src]

pub trait DeterministicModel<S: Space, A: Space> {
    fn transition2(&self, curr: &S::Element, action: &A::Element) -> S::Element;
    fn reward2(&self, curr: &S::Element, action: &A::Element) -> f64;
    fn update(&mut self, transition: Transition<S, A>);
}

Represents a deterministic model of an environment When the agent performs a specified action in a specified state, there's only one possible next state

Required Methods

Returns the new state of the agent after performing action in curr

Returns the reward received when performing action in curr

Upates the model using information from the given transition

Implementors