Struct renforce::trainer::QLearner [] [src]

pub struct QLearner<A: FiniteSpace> { /* fields omitted */ }

Represents an OnlineTrainer for Q-functions Uses the Q-learning algorithm

Methods

impl<A: FiniteSpace> QLearner<A>
[src]

Returns a new QLearner with the given info

Creates a new QLearner with default gamma, alpha, and train_period

Sets gamma field of self

Sets alpha field of self

Sets train_period field of self

Trait Implementations

impl<A: Debug + FiniteSpace> Debug for QLearner<A>
[src]

Formats the value using the given formatter.

impl<T, S: Space, A: FiniteSpace> OnlineTrainer<S, A, T> for QLearner<A> where T: QFunction<S, A> + Agent<S, A>
[src]

Performs one training iteration using the given transition

Automatically trains the agent to perform well in the environment