nce.lmm_cov</code> module for REML derivation:</p>

<div class="highlight"><pre><code class="language-python" data-lang="python"><span class="n">nLL</span> <span class="o">=</span> <span class="mf">0.5</span> <span class="o">*</span> <span class="p">(</span><span class="n">logdetK</span> <span class="o">+</span> <span class="n">N</span> <span class="o">*</span> <span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">log</span><span class="p">(</span><span class="mf">2.0</spa