Trait renforce::agent::Agent
[−]
[src]
pub trait Agent<S: Space, A: Space> { fn get_action(&self, state: &S::Element) -> A::Element; }
Represents an agent acting in an environment
Required Methods
fn get_action(&self, state: &S::Element) -> A::Element
Returns the actions the agent should perform in the given state
Implementors
impl<S: Space, A: FiniteSpace, Q: QFunction<S, A>> Agent<S, A> for GreedyQAgent<S, A, Q>
impl<S: Space, A: FiniteSpace, Q, T> Agent<S, A> for EGreedyQAgent<S, A, Q, T> where T: Chooser<A::Element>,
Q: QFunction<S, A>impl<S: Space, A: FiniteSpace> Agent<S, A> for BinaryVAgent<S, A>
impl<S: Space, A: Space> Agent<S, A> for RandomAgent<A>
impl<F: Float, S: Space, A: FiniteSpace, D> Agent<S, A> for PolicyAgent<F, S, A, D> where D: DifferentiableFunc<S, A, F>