Trait renforce::util::QFunction [] [src]

pub trait QFunction<S: Space, A: Space>: Debug {
    fn eval(&self, state: &S::Element, action: &A::Element) -> f64;
    fn update(&mut self,
              state: &S::Element,
              action: &A::Element,
              new_val: f64,
              alpha: f64); }

QFunction Trait

Represents a function Q: S x A -> R that takes in a (state, action) pair and returns the value of that pair

Required Methods

Evaluate the function on the given state and action

Update the function using the given information (alpha is learning rate)

Implementors