Struct renforce::trainer::DynaQ [] [src]

pub struct DynaQ<S: Space, A: FiniteSpace, M: Model<S, A>> where S::Element: Hash + Eq,
        A::Element: Hash + Eq
{ /* fields omitted */ }

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

Methods

impl<S: Space, A: FiniteSpace, M: Model<S, A>> DynaQ<S, A, M> where S::Element: Hash + Eq,
        A::Element: Hash + Eq
[src]

Returns a new DynaQ with the given parameters

Creates a new DynaQ with default parameters

Sets gamma field of self

Sets alpha field of self

Sets train_period field of self

Sets num_samples field of self

Trait Implementations

impl<S: Debug + Space, A: Debug + FiniteSpace, M: Debug + Model<S, A>> Debug for DynaQ<S, A, M> where S::Element: Hash + Eq,
        A::Element: Hash + Eq,
        A::Element: Debug,
        S::Element: Debug
[src]

Formats the value using the given formatter.

impl<T, S: Space, A: FiniteSpace, M: Model<S, A>> OnlineTrainer<S, A, T> for DynaQ<S, A, M> where T: QFunction<S, A> + Agent<S, A>,
        S::Element: Hash + Eq,
        A::Element: Hash + Eq
[src]

Performs one training iteration using the given transition

Automatically trains the agent to perform well in the environment