/span><span class="n">view</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">)</span>
            <span class="n">non_negative_weights</span> <span class="o">=</span> <span class="n">weight_vector</span><span class="p">[</span><span class="n">non_negative_weight_indices</span><span class="p">]</span><span class="o">.</span><span class="n">tolist</span><span class="p">()</span>
            <span class="n">non_negative_weight_indices</span> <span class="o">=</span>