 class="viewcode-block" id="DeepLearning.train"><a class="viewcode-back" href="../../index.html#Forecaster.deeplearning.DeepLearning.train">[docs]</a>    <span class="k">def</span> <span class="nf">train</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">train_loader</span><span class="p">):</span>
        <span class="sd">&quot;&quot;&quot;Performs a single training epoch and returns the loss metric</span>
<span class="sd">        for the training dataset.</s