blakeelias / pandemic_RL

Reinforcement learning for economically optimal pandemic response.
GNU General Public License v3.0
2 stars 1 forks source link

Speed up transition calculation #23

Open blakeelias opened 3 years ago

blakeelias commented 3 years ago

one_step_lookahead() in value_iteration.py has become slower, having introduced the dynamic call to env.transitions(state, a) on every iteration, rather than the previous static usage of env.P[state][a].

blakeelias commented 3 years ago

What can be done to speed this up, though?