 identical scores
        final_alpha = alphas[np.argmax(alpha_scores)]
    else:
        final_alpha = alphas[i - 1]

    return final_alpha</code></pre>
</details>
</dd>
<dt id="imodels.util.score.score_linear"><code class="name flex">
<span>def <span class="ident">score_linear</span></span>(<span>X, y, rules:¬†List[str], penalty='l1', prediction_task='regression', max_rules=30, alpha=None, cv=True, random_state=None) ‚Äë>¬†Tuple[List[<a title="imodels.util.rule.Rule" href="rule.html#imodels.uti