forger 0.1.4

Forger is a library for reinforcement learning with Rust
Documentation
1
2
3
4
5
6
7
8
9
pub mod lineworld;
pub mod gridworld;

pub trait Env<S, A> {
    fn transition(&self, state: &S, action: &Option<A>) -> (Option<S>, f64);
    fn is_terminal(&self, state: &S) -> bool;
    fn is_goal(&self, state: &S) -> bool;
    fn available_actions(&self, state: &S) -> Vec<A>;
}