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]

Creates a new BinaryVAgent

Trait Implementations

impl<S: Debug + Space, A: Debug + FiniteSpace> Debug for BinaryVAgent<S, A>
[src]

Formats the value using the given formatter.

impl<S: Space, A: FiniteSpace> Agent<S, A> for BinaryVAgent<S, A>
[src]

Returns the actions the agent should perform in the given state

impl<S: Space, A: FiniteSpace> VFunction<S> for BinaryVAgent<S, A>
[src]

Evaluate the function on the given state

Update the function using the given information (alpha is learning rate)