de>ndarray</code></strong></dt>
<dd>target numpy array</dd>
<dt><strong><code>p_sparsity</code></strong> :&ensp;<code>float</code>, optional</dt>
<dd>desired layer sparsity</dd>
<dt><strong><code>masking_function</code></strong></dt>
<dd>neuron masking function</dd>
</dl>
<h2 id="returns">Returns</h2>
<dl>
<dt><code>ndarray</code></dt>
<dd>pruned ndarray</dd>
</dl></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def u_prune_layer(ndarray, p_spars