an>
    <span class="k">return</span> <span class="p">(</span><span class="n">predictions</span> <span class="o">-</span> <span class="n">targets</span><span class="p">)</span><span class="o">.</span><span class="n">median</span><span class="p">()</span></div>



<div class="viewcode-block" id="mean_error">
<a class="viewcode-back" href="../../../vtools.functions.html#vtools.functions.skill_metrics.mean_error">[docs]</a>
<span class="k">def</span> <span class="nf">mean_error</span><span class="p">(</span><s