="p">(</span><span class="n">data_X</span><span class="p">,</span> <span class="n">thresh</span><span class="o">=</span><span class="mf">0.98</span><span class="p">,</span> <span class="n">verbose</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;Calculated the number of dimensions required to reach a threshold level</span>
<span class="sd">    of variance.</span>

<span class="sd">    Completes a PCA reduction to an increasing number 