Struct rurel::AgentTrainer [] [src]

pub struct AgentTrainer<S> where
    S: State
{ /* fields omitted */ }

An AgentTrainer can be trained for using a certain Agent. After training, the AgentTrainer contains learned knowledge about the process, and can be queried for this. For example, you can ask the AgentTrainer the expected values of all possible actions in a given state.

Methods

impl<S> AgentTrainer<S> where
    S: State
[src]

Fetches the learned values for the given state, by Action, or None if no value was learned.

Fetches the learned value for the given Action in the given State, or None if no value was learned.

Trains this AgentTrainer using the given ExplorationStrategy, LearningStrategy and Agent for iters iterations.