Struct renforce::trainer::SARSALearner [] [src]

pub struct SARSALearner { /* fields omitted */ }

Represents an OnlineTrainer for Q-functions Uses the SARSA algorithm

Methods

impl SARSALearner
[src]

Returns a new SARSALearner with the given info

Sets gamma field of self

Sets alpha field of self

Sets train_period field of self

Trait Implementations

impl Debug for SARSALearner
[src]

Formats the value using the given formatter.

impl<T, S: Space, A: Space> OnlineTrainer<S, A, T> for SARSALearner 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

impl Default for SARSALearner
[src]

Creates a new SARSALearner with default values for gamma, alpha, and train_period