pan> <span class="o">+</span> <span class="n">model_name</span> <span class="o">+</span> <span class="s1">&#39;.pth&#39;</span><span class="p">)</span>
    <span class="k">return</span> <span class="n">model</span></div>


<div class="viewcode-block" id="EarlyStopping"><a class="viewcode-back" href="../../index.html#Forecaster.deeplearning.EarlyStopping">[docs]</a><span class="k">class</span> <span class="nc">EarlyStopping</span><span class="p">:</span>
    <span class="sd">&quot;&quot;&quot;Used to facilit