 class="nb">sum</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="kc">None</span></div>


<div class="viewcode-block" id="slice_series"><a class="viewcode-back" href="../../preprocessing.html#Foresight.preprocessing.slice_series">[docs]</a><span class="k">def</span> <span class="nf">slice_series</span><span class="p">(</span><span class="n">data_X</span><spa