pan class="n">index</span><span class="p">(</span><span class="n">min_obj_val</span><span class="p">)</span>

        <span class="c1"># Final results based on best</span>
        <span class="c1"># parents_f = parents_ann[i_best]</span>
        <span class="n">results_f</span> <span class="o">=</span> <span class="n">causal_prediction</span><span class="p">[</span><span class="n">i_best</span><span class="p">]</span>
        <span class="c1"># links_f = links_ann[i_best]</span>
        <span class="n">gamm