lass="n">add_empty_class</span><span class="p">:</span>
        <span class="n">n_classes</span> <span class="o">-=</span> <span class="mi">1</span>
    <span class="n">avg_sample_count</span> <span class="o">=</span> <span class="nb">sum</span><span class="p">([</span><span class="nb">len</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">sample_paths</span><span class="o">.</span><spa