Trait renforce::trainer::OnlineTrainer
[−]
[src]
pub trait OnlineTrainer<S: Space, A: Space, T: Agent<S, A>> { fn train_step(&mut self, agent: &mut T, transition: Transition<S, A>); fn train(&mut self, agent: &mut T, env: &mut Environment<State=S, Action=A>); }
Represents a way to train an agent online (by interacting with the environment)
Required Methods
fn train_step(&mut self, agent: &mut T, transition: Transition<S, A>)
Performs one training iteration using the given transition
fn train(&mut self, agent: &mut T, env: &mut Environment<State=S, Action=A>)
Automatically trains the agent to perform well in the environment
Implementors
impl<T, S: Space, A: FiniteSpace> OnlineTrainer<S, A, T> for QLearner<A> where T: QFunction<S, A> + Agent<S, A>
impl<T, S: Space, A: Space> OnlineTrainer<S, A, T> for SARSALearner where T: QFunction<S, A> + Agent<S, A>
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