AIDynamicAction / rcognita

rcognita is a flexibly configurable framework for agent-enviroment simulation with a menu of predictive and safe reinforcement learning controllers
MIT License
16 stars 6 forks source link

Implement tabular method and pipeline #58

Open OdinManiac opened 2 years ago

osinenkop commented 2 years ago

Need:

  1. system (gridworld) with logger and animator
  2. scenario for tabular RL updates
  3. tabular RL method

Will probably need lookup table model. Actor and critic are tables. Learning via policy iteration and value iteration -- see S&B, p. 74 book.

Scenario: one iteration is processing of the whole state space (gridworld).

Need terminal state. So, optimal policy is a set of arrows for each cell indicating how to optimally reach the target. Each cell has negative reward, some cells have lower negative rewards than others. Only target (terminal) state has positive reward.

Need animation like 3wrobot, but left upper corner: gridworld itself, arrows show optimal actions, cells with colors from red to green indicating low and high reward. Numbers in cells = values

No stochastics needed. Just deterministic gridworld. For an example, see frozen lake