30
$\begingroup$

I am trying to understand the famous paper "Playing Atari with Deep Reinforcement Learning" (pdf). I am unclear about the difference between an epoch and episode. In algorithm $1$, the outer loop is over episodes, while in figure $2$ the x-axis is labeled epoch. In the context of reinforcement learning, I'm not clear what an epoch means. Is an epoch an outer loop around the episode loop?

enter image description here

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ So...how many episodes make an epoch? $\endgroup$
    – Lewen
    Commented Oct 24, 2017 at 16:33

1 Answer 1

31
$\begingroup$
  • one episode = one a sequence of states, actions and rewards, which ends with terminal state. For example, playing an entire game can be considered as one episode, the terminal state being reached when one player loses/wins/draws. Sometime, one may prefer to define one episode as several games (example: "each episode is a few dozen games, because the games go up to score of 21 for either player").
  • one epoch = one forward pass and one backward pass of all the training examples, in the neural network terminology.

In the paper you mention, they seem to be more flexible regarding the meaning of epoch, as they just define one epoch as being a certain amount of weight updates. You can therefore view one epoch as being an outer loop around the episode loop, as you mentioned in the question.

$\endgroup$
1
  • $\begingroup$ Hi. I just confused myself with the epoch. Do you mean one forward propagation and backward propagation over the data received in one episode? and if the episode number is increased, it will go over the whole data received in all episodes? $\endgroup$
    – JAMSHAID
    Commented Nov 12, 2022 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.