functions.skill_metrics.corr_coefficient">[docs]</a>
<span class="k">def</span> <span class="nf">corr_coefficient</span><span class="p">(</span><span class="n">predictions</span><span class="p">,</span> <span class="n">targets</span><span class="p">,</span> <span class="n">method</span><span class="o">=</span><span class="s2">&quot;pearson&quot;</span><span class="p">):</span>
<span class="w">    </span><span class="sd">&quot;&quot;&quot;Calculates the correlation coefficient (the &#39;r&#39; in &#39;-squar