class="n">item</span><span class="p">():</span>
            
            <span class="k">if</span> <span class="n">iteration</span> <span class="o">==</span> <span class="bp">self</span><span class="o">.</span><span class="n">stop_iterations_by_count</span><span class="p">:</span>
                <span class="k">break</span>
            
            <span class="n">loss</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">loss</span><span class="p">(</span