span class="p">(</span><span class="n">labeled_dataset</span><span class="p">,</span> <span class="n">unlabeled_dataset</span><span class="p">,</span> <span class="n">net</span><span class="p">,</span> <span class="n">nclasses</span><span class="p">,</span> <span class="n">args</span><span class="o">=</span><span class="p">{})</span>

    <span class="k">def</span> <span class="nf">cal_dis</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">x</span><span clas