              float</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="c1"># Set the model to evaluate mode</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="o">.</span><span class="n">eval</span><span class="p">()</span>

        <span class="n">val_loss</span> <span class="o">=</span> <span class="mf">0.</span>

        <span class="c1"># Initialising the empty array for target predictions</span>
        <span class="k">