markusdumke / reinforcelearn

R Package for Reinforcement Learning
https://markusdumke.github.io/reinforcelearn/
Other
33 stars 6 forks source link

Test for Sarsa fails #12

Closed markusdumke closed 7 years ago

markusdumke commented 7 years ago
test_that("SARSA(0) converges to correct policy for gridworld", {
  Q = sarsa(grid, n.episodes = 1000)
  policy = make_greedy_policy(Q)
  expect_equal(policy[test_states, ], optimal.policy[test_states, ])
})