<span class="n">explained_variance_ratio_</span><span class="p">),</span> <span class="n">pca</span><span class="o">.</span><span class="n">explained_variance_ratio_</span><span class="p">)</span>

    <span class="k">return</span> <span class="n">data_X</span></div>


<div class="viewcode-block" id="dimension_selector"><a class="viewcode-back" href="../../preprocessing.html#Foresight.preprocessing.dimension_selector">[docs]</a><span class="k">def</span> <span class="nf">dimension_selector</span><span class