span><span class="p">)</span> <span class="o">+</span> <span class="n">n_jobs</span>
        <span class="k">if</span> <span class="n">n_jobs</span> <span class="o">&lt;=</span> <span class="mi">0</span><span class="p">:</span>
            <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;Invalid number of jobs specified.&quot;</span><span class="p">)</span>

        <span class="c1"># Split data into n_jobs (almost) equal jobs</span>
        <span