p>The following describes the order of events in <a href="/mrl/environment.html#Environment.fit"><code>Environment.fit</code></a></p>
<ol>
<li>Callbacks added during <a href="/mrl/environment.html#Environment.fit"><code>Environment.fit</code></a> are registered</li>
<li><code>before_train</code> event is called</li>
<li>Start iterating over the number of batches. For each batch:</li>
<li>Call <a href="/mrl/environment.html#Environment.build_buffer"><code>Environment.build_buffer</code></a>. If current buffe