 if alpha is not None:
        final_alpha = alpha
        if max_rules is not None:
            warn(&#34;Ignoring max_rules parameter since alpha passed explicitly&#34;)

    elif max_rules is not None:
        final_alpha = get_best_alpha_under_max_rules(X, y, rules,
                                                     penalty=penalty,
                                                     prediction_task=prediction_task,
                                                     max_rules=max_rules,
           