Skip to content

RFC deprecate the SAMME.R algorithm in AdaBoostClassifier #26784

Closed

Description

@glemaitre

While working on the following example (#26486), I found a couple of issues regarding the SAMME.R algorithm, which is the default algorithm in AdaBoostClassifier:

For these two reasons, I think that we should deprecate this algorithm and remove the parameter algorithm from the AdaBoostClassifier.

In addition, I think that we should monitor the latest work on multiclass AdaBoost, where additional theoretical founding is revealed, cf. https://proceedings.neurips.cc/paper/2021/hash/17f5e6db87929fb55cebeb7fd58c1d41-Abstract.html

Activity

  1. added
    Needs Triage
    on Jul 6, 2023
  2. adrinjalali commented on Jul 6, 2023

    @adrinjalali
    Member

    I'd be +1 for that.

    (Also a good issue for @StefanieSenger if we decide to do it)

  3. thomasjpfan commented on Jul 6, 2023

    @thomasjpfan
    Member

    However, this paper is a preprint. In the final version of the paper, the SAMME.R algorithm is presented.

    @glemaitre Did you mean that SAMME.R is not present in the published paper?

  4. glemaitre commented on Jul 6, 2023

    @glemaitre
    MemberAuthor

    Yes, it is not published. I corrected my sentence.

  5. jpangas commented on Jul 12, 2023

    @jpangas
    Contributor

    Is @StefanieSenger working on this already? If not, I would be willing to take it up.:)

  6. StefanieSenger commented on Jul 12, 2023

    @StefanieSenger
    Member

    Hey @jpangas, I'm working on it already. :)

  7. thomasjpfan commented on Jul 12, 2023

    @thomasjpfan
    Member

    For the record, I am +1 on deprecating SAMME.R in AdaBoostClassifer.

  8. added and removed
    Needs Triage
    on Jul 12, 2023
  9. adrinjalali commented on Jul 13, 2023

    @adrinjalali
    Member

    So there's an with this deprecation which seems to be a two step deprecation really. One way to do this is:

    • deprecated "SAMME.R" as an option for algorithm in version x
      • warning is silenced by setting algorithm="SAMME"
    • remove "SAMME.R" in version x+2, and deprecated algorithm as an argument
      • warning is silenced by not passing anything to algorithm
    • remove algorithm in version x+4
      • no warnings since we've been telling people to not use algorithm

    Another alternative is to deprecate "SAMME.R" and remove algorithm together at version x, but this I'm not sure how to deal with warnings in this case:

    • we need to warn users that we're removing "SAMME.R", and they need to have a way to silence this warning by setting algorithm to something (None, or "SAMME")
    • we also need to warn users that algorithm is being removed and that they shouldn't set it.

    The above two warnings don't really work together, I'm not sure how to proceed then.

  10. glemaitre commented on Jul 13, 2023

    @glemaitre
    MemberAuthor

    I think we need to go to the first scheme. I don't think we need to hurry by deprecating algorithm right away. We might want to look at the literature regarding the multiclass approach.

    The first 2 cycles will make use buy time.

  11. StefanieSenger commented on Jul 13, 2023

    @StefanieSenger
    Member

    I was trying to remove the whole algorithm param at once, so then the user would be shown a warning however their behaviour (not specifying algorithm, since the default would change two versions ahead, or specifying algorithm, because they used a param that's going to deprecated.
    Would it work if I'd set algorithm as 'deprecated' as a default in the init() and then redirect it to use samme.r until it's removed in x+2?

  12. StefanieSenger commented on Jul 13, 2023

    @StefanieSenger
    Member

    Or, I can also implement the first version (only deprecating SAMME.R).

  13. glemaitre commented on Jul 13, 2023

    @glemaitre
    MemberAuthor

    The first version will make it easier.

  14. BRBroadgate commented on Nov 21, 2025

    @BRBroadgate

    I have a forcasting model that used the previous version of AdaBoostClassifier ("SAMME.R") and was very good at predicting. Now with the SAMME algorithm, the predictions are very poor. Can we keep the "SAMME.R" algorithm as an option ?

  15. StefanieSenger commented on Nov 21, 2025

    @StefanieSenger
    Member

    Hi @BRBroadgate, thanks for reporting, but what you wrote doesn't help deciding on that. You would need to tell us more about your use case and some code example that shows the drop in prediction accuracy.

    The reason we deprecated was that SAMME.R was only a pre-print, if I recall correctly, and did not fulfill the criteria to be included in scikit-learn. So your proposal would come down to a feature-request. For this ideally, you would open an issue. Please be aware that #32660 applies for this kind of request and it might take months before someone looks at this issue, if at all. There is not enough time for maintainers to do the careful check that would be required unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions