t_best_alpha_under_max_rules"><code class="name flex">
<span>def <span class="ident">get_best_alpha_under_max_rules</span></span>(<span>X, y, rules:¬†List[str], penalty='l1', prediction_task='regression', max_rules=30, cv=True, random_state=None) ‚Äë>¬†float</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def get_best_alpha_under_max_rules(X, y, rules: List[str],
                              