1

Which one is correct "at every/each iteration" or "in every/each iteration"? I also have this confusion when using "step" instead of "iteration". More specifically, should I use "at each step" or "in each step"? Is there a difference in meaning between the usage of "in" and "at"?

Google Books Ngram Viewer shows that "at each iteration" is the most common expression.

This type of expressions are often encountered in computer science. For example, in the paper Metacontrol for Adaptive Imagination-Based Optimization, the authors often use "on each iteration".

Note: I'm not looking for an explanation in the specific context I've just mentioned (i.e. the paper I linked you to above), but general guidelines to follow.

0

at refers to a point or a discrete event.

in refers to a context.

At every iteration a counter is incremented.

In every iteration several tasks are performed.

  • Why could or not I use "at" in the second example? There we also have a point, i.e. the iteration, or a discrete event (the iteration). – nbro Oct 22 '18 at 12:38
  • I said nothing about not being able to use at in #2. That is an inference you've drawn. But the nuanced difference is this: if you want to present the iteration as a context in which actions or tasks are carried out, use in. If you want to present the iteration as a (recurrent) point in time, at which point actions are triggered, use at. I'm trying to show you what in and at mean, not answer a question about which one is "right". – Tᴚoɯɐuo Oct 22 '18 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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