>=</span> <span class="bp">self</span><span class="o">.</span><span class="n">validate</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">val_loader</span><span class="p">)</span>

            <span class="c1"># Saves a copy of the model if it improves on previous </span>
            <span class="c1"># best val score</span>
            <span class="k">if</span> <span class="n">val_loss</span> <span class="o">&lt;=</span> <span class="bp">self</span><span class=