Struct renforce::agent::vagents::BinaryVAgent
[−]
[src]
pub struct BinaryVAgent<S: Space, A: FiniteSpace> { /* fields omitted */ }
Agent for environments where the action space has 2 members Performs action 0 if state value is negative, and performs action 1 otherwise
Methods
impl<S: Space, A: FiniteSpace> BinaryVAgent<S, A>
[src]
fn new(v_func: Box<VFunction<S>>, action_space: A) -> BinaryVAgent<S, A>
Creates a new BinaryVAgent
Trait Implementations
impl<S: Debug + Space, A: Debug + FiniteSpace> Debug for BinaryVAgent<S, A>
[src]
impl<S: Space, A: FiniteSpace> Agent<S, A> for BinaryVAgent<S, A>
[src]
fn get_action(&self, state: &S::Element) -> A::Element
Returns the actions the agent should perform in the given state