ass="kc">True</span><span class="p">,</span> <span class="kc">True</span><span class="p">]):</span>
<span class="w">    </span><span class="sd">&quot;&quot;&quot;Calculate the (possibly trimmed) mean error, discounting nan values</span>

<span class="sd">    Parameters</span>
<span class="sd">    ----------</span>
<span class="sd">    predictions, targets : array_like</span>
<span class="sd">        Time series or arrays to be analyzed</span>

<span class="sd">    limits : tuple(float)</span>
<span class="s