ensor</span><span class="p">]:</span>
        <span class="k">if</span> <span class="n">estimation_method</span> <span class="o">==</span> <span class="s1">&#39;likelihood&#39;</span><span class="p">:</span>
            <span class="c1"># class</span>
            <span class="n">Y</span> <span class="o">=</span> <span class="n">Categorical</span><span class="p">(</span><span class="n">probs</span><span class="o">=</span><span class="n">torch</span><span class="o">.</span><span class="n">Tensor</span><span c