Skip to content

Instantly share code, notes, and snippets.

@msaroufim
Created October 28, 2019 00:17
Show Gist options
  • Save msaroufim/d7d9090024d048b4484e80d6478ba7c7 to your computer and use it in GitHub Desktop.
Save msaroufim/d7d9090024d048b4484e80d6478ba7c7 to your computer and use it in GitHub Desktop.
mutable struct Episode{E<:AbstractEnvironment,P<:AbstractPolicy,F<:AbstractFloat}
env::E
policy::P
total_reward::F # total reward of the episode
last_reward::F
niter::Int # current step in this episode
freq::Int # number of steps between choosing actions
maxn::Int # max steps in an episode - should be constant during an episode
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment