pan> <span class="n">p</span><span class="p">:</span> <span class="nb">int</span><span class="p">):</span>
<span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">    Calcuate AIC score.</span>

<span class="sd">    Parameters</span>
<span class="sd">    ----------</span>
<span class="sd">    loss: float</span>
<span class="sd">        Model loss (MSE or Log-Loss).</span>
<span class="sd">    n: int</span>
<span class="sd">        Number of observations.</span>
<span class="sd