Trait renforce::util::DifferentiableFunc [] [src]

pub trait DifferentiableFunc<S: Space, A: Space, T: Num>: ParameterizedFunc<T> {
    fn get_grad(&self, state: &S::Element, action: &A::Element) -> Vec<T>;
    fn calculate(&self, state: &S::Element, action: &A::Element) -> T;
}

A differentiable function taking in (state, action) pairs

Required Methods

Calculates the gradient of the output with respect to this function's parameters

Calculates the result of calling function on given input

Implementors