Trait renforce::util::LogDiffFunc
[−]
[src]
pub trait LogDiffFunc<S: Space, A: Space, T: Num>: ParameterizedFunc<T> { fn log_grad(&self, state: &S::Element, action: &A::Element) -> Vec<T>; }
A function taking in (state, action) pairs whose log can be differentiated
Required Methods
fn log_grad(&self, state: &S::Element, action: &A::Element) -> Vec<T>
The gradient of the log of the output with respect to the parameters
Implementors
impl<F: Float, S: Space, A: FiniteSpace, D> LogDiffFunc<S, A, F> for PolicyAgent<F, S, A, D> where D: DifferentiableFunc<S, A, F>