Trait renforce::util::ParameterizedFunc
[−]
[src]
pub trait ParameterizedFunc<T: Num> {
fn num_params(&self) -> usize;
fn get_params(&self) -> Vec<T>;
fn set_params(&mut self, params: Vec<T>);
}A function that evaluates its input by making use of some parameters
Required Methods
fn num_params(&self) -> usize
Returns number of parameters used by the function
fn get_params(&self) -> Vec<T>
Returns the parameters used by the function
fn set_params(&mut self, params: Vec<T>)
Changes the parameters used by the function
Implementors
impl<N: Num, S: Space, A: FiniteSpace, Q> ParameterizedFunc<N> for GreedyQAgent<S, A, Q> where Q: QFunction<S, A> + ParameterizedFunc<N>impl<N: Num, S: Space, A: FiniteSpace, Q, T> ParameterizedFunc<N> for EGreedyQAgent<S, A, Q, T> where T: Chooser<A::Element>,
Q: QFunction<S, A> + ParameterizedFunc<N>impl<F: Float, S: Space, A: FiniteSpace, D> ParameterizedFunc<F> for PolicyAgent<F, S, A, D> where D: DifferentiableFunc<S, A, F>impl<F: Float + Debug, S: Space> ParameterizedFunc<F> for VLinear<F, S>impl<F: Float + Debug, S: Space, A: FiniteSpace> ParameterizedFunc<F> for QLinear<F, S, A> where A::Element: Hash + Eq