 class="p">[</span><span class="n">np</span><span class="o">.</span><span class="n">where</span><span class="p">(</span><span class="n">missing_samples</span><span class="p">)[</span><span class="mi">0</span><span class="p">],</span> <span class="n">missing_features</span><span class="p">]</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">nan</span>
  <span class="n">rng</span><span class="o">.</span><span class="n">shuffle</span><span class="p">(</span><span c