Struct renforce::util::approx::QLinear [] [src]

pub struct QLinear<F: Float + Debug, S: Space, A: FiniteSpace> where A::Element: Hash + Eq { /* fields omitted */ }

Represents multiple linear function approximators, one for each action

Methods

impl<S: Space, A: FiniteSpace> QLinear<f64, S, A> where A::Element: Hash + Eq
[src]

Creates a new, empty QLinear

impl<F: Float + Debug, S: Space, A: FiniteSpace> QLinear<F, S, A> where A::Element: Hash + Eq
[src]

Creates a new, empty QLinear

Adds feat to list of features. Should not be called after any calls to eval or update

Trait Implementations

impl<F: Debug + Float + Debug, S: Debug + Space, A: Debug + FiniteSpace> Debug for QLinear<F, S, A> where A::Element: Hash + Eq,
        A::Element: Debug
[src]

Formats the value using the given formatter.

impl<F: Clone + Float + Debug, S: Clone + Space, A: Clone + FiniteSpace> Clone for QLinear<F, S, A> where A::Element: Hash + Eq,
        A::Element: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F: Float + Debug, S: Space, A: FiniteSpace> QFunction<S, A> for QLinear<F, S, A> where A::Element: Hash + Eq
[src]

Evaluate the function on the given state and action

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

impl<F: Float + Debug, S: Space, A: FiniteSpace> ParameterizedFunc<F> for QLinear<F, S, A> where A::Element: Hash + Eq
[src]

Returns number of parameters used by the function

Returns the parameters used by the function

Changes the parameters used by the function

impl<S: Space, A: FiniteSpace, F: Float + Debug> FeatureExtractor<S, A, F> for QLinear<F, S, A> where A::Element: Hash + Eq
[src]

Number of features that can be calculated

Vector containg the values of all the features for this state

impl<S: Space, A: FiniteSpace, F: Float + Debug> DifferentiableFunc<S, A, F> for QLinear<F, S, A> where A::Element: Hash + Eq
[src]

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

Calculates the result of calling function on given input