Struct renforce::agent::RandomAgent
[−]
[src]
pub struct RandomAgent<A: Space> { /* fields omitted */ }
Random Agent
Represents an agent that acts randomly
Methods
impl<A: Space> RandomAgent<A>
[src]
fn new(action_space: A) -> RandomAgent<A>
Creates a new random agent that performs actions from the given space
Trait Implementations
impl<A: Debug + Space> Debug for RandomAgent<A>
[src]
impl<S: Space, A: Space> Agent<S, A> for RandomAgent<A>
[src]
fn get_action(&self, _: &S::Element) -> A::Element
Returns the actions the agent should perform in the given state