Struct renforce::agent::qagents::GreedyQAgent [] [src]

pub struct GreedyQAgent<S: Space, A: FiniteSpace, Q: QFunction<S, A>> { /* fields omitted */ }

Greedy Q-Agent

Represents an agent that only performs the best action according to its QFunction

Methods

impl<S: Space, A: FiniteSpace, Q: QFunction<S, A>> GreedyQAgent<S, A, Q>
[src]

Returns a new GreedyQAgent with the given function and action space

Returns an EGreedyQAgent using this agent's Q function

Trait Implementations

impl<S: Debug + Space, A: Debug + FiniteSpace, Q: Debug + QFunction<S, A>> Debug for GreedyQAgent<S, A, Q>
[src]

Formats the value using the given formatter.

impl<S: Space, A: FiniteSpace, Q: QFunction<S, A>> Agent<S, A> for GreedyQAgent<S, A, Q>
[src]

Returns the actions the agent should perform in the given state

impl<S: Space, A: FiniteSpace, Q: QFunction<S, A>> QFunction<S, A> for GreedyQAgent<S, A, Q>
[src]

Evaluate the function on the given state and action

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

impl<N: Num, S: Space, A: FiniteSpace, Q> ParameterizedFunc<N> for GreedyQAgent<S, A, Q> where Q: QFunction<S, A> + ParameterizedFunc<N>
[src]

Returns number of parameters used by the function

Returns the parameters used by the function

Changes the parameters used by the function

impl<F: Float, A: FiniteSpace, S: Space, Q> FeatureExtractor<S, A, F> for GreedyQAgent<S, A, Q> where Q: QFunction<S, A> + FeatureExtractor<S, A, F>
[src]

Number of features that can be calculated

Vector containg the values of all the features for this state

impl<F: Float, A: FiniteSpace, S: Space, Q> DifferentiableFunc<S, A, F> for GreedyQAgent<S, A, Q> where Q: QFunction<S, A> + DifferentiableFunc<S, A, F>
[src]

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

Calculates the result of calling function on given input