Skip to content

Adding more functionality to DecisionBoundaryDisplay #27462

Open

Description

@glemaitre

This issue is to track the improvements that should be made to the DecisionBoundaryDisplay:

Activity

  1. self-assigned this
    on Sep 25, 2023
  2. added
    Needs Triage
    on Sep 25, 2023
  3. removed
    Needs Triage
    on Oct 5, 2023
  4. moved this from Discussion to Todo in Visualization and displayson May 17, 2024
  5. StefanieSenger commented on Jan 28, 2025

    @StefanieSenger
    Member

    I have used DecisionBoundaryDisplay to plot from_estimator of a DecisionTreeClassifier as in this example.

    Based on that I would suggest further improvements:

    1. add a title to the plot that clearly states which response_method from which estimator was used in the plot
    2. add a legend that shows the values (or value regions) of the response method used (percentages for predict_proba, classes for proba, raw values for decision_function)
      • 2b. redefine the representation of the legend that defines the classes, since they look like a scale rather than marking membership

    Do you think this would be useful, @glemaitre?

  6. glemaitre commented on Mar 1, 2025

    @glemaitre
    MemberAuthor

    I agree that we can improve the plot. Maybe some of those improvement would be opt-in via parameter. I need to think more about each of them but having proof of concept will help anyway to know if we want it a certain way.

  7. added
    good first issue
    on Jun 16, 2025
  8. ansamz commented on Jun 16, 2025

    @ansamz
    Contributor

    /take

  9. PardeepGothriwal commented on Jul 3, 2025

    @PardeepGothriwal

    “Hi! I’d like to work on adding xlim and ylim parameters to DecisionBoundaryDisplay.from_estimator. Is anyone already working on this? Otherwise, I’ll start.”

  10. ansamz commented on Jul 3, 2025

    @ansamz
    Contributor

    “Hi! I’d like to work on adding xlim and ylim parameters to DecisionBoundaryDisplay.from_estimator. Is anyone already working on this? Otherwise, I’ll start.”

    Unfortunately I didn't get to it

  11. StefanieSenger commented on Jul 4, 2025

    @StefanieSenger
    Member

    Hi @PardeepGothriwal, nice to hear you want to contribute. ❤ @ShauryaDusht is currently working on this one already in #31693. Happy to evaluate your suggestions on what else in the display-world could be improved.

  12. PardeepGothriwal commented on Jul 4, 2025

    @PardeepGothriwal

    “Hi! I’d like to work on adding xlim and ylim parameters to DecisionBoundaryDisplay.from_estimator. Is anyone already working on this? Otherwise, I’ll start.”

    Unfortunately I didn't get to it, feel free

    Thanks! I’ll start working on it and will keep you posted.

  13. 3 remaining items

  14. StefanieSenger commented on Jul 6, 2025

    @StefanieSenger
    Member

    Oh nice, @ansamz!

  15. Vishal35198 commented on Jul 12, 2025

    @Vishal35198
  16. Harin22 commented on Aug 2, 2025

    @Harin22

    Hi! am new to the space! I'd like to work on improving the legend in DecisionBoundaryDisplay to better reflect the response_method.. like, (e.g., showing probabilities, class labels, or decision scores clearly).. Is it okay if I take this?

  17. vsree345 commented on Aug 18, 2025

    @vsree345

    Heyy!!! I just started open source contribuition, I want to solve this issue if its still there, can someone please guide me through the process.

  18. jimoholayinka01 commented on Aug 23, 2025

    @jimoholayinka01

    Hi, I’d like to contribute to this issue. I had a quick question about the represent the max of probability point—could you clarify what the intended behavior should be?

    Once I understand that, I’d love to take it on. Thanks!

  19. sridharbalamurugan commented on Sep 5, 2025

    @sridharbalamurugan
  20. sridharbalamurugan commented on Sep 5, 2025

    @sridharbalamurugan
  21. AtharvaAiren commented on Sep 7, 2025

    @AtharvaAiren

    /take

  22. removed
    good first issue
    on Sep 8, 2025
  23. StefanieSenger commented on Sep 8, 2025

    @StefanieSenger
    Member

    I remove the good first issue label because it seems to set the expectation of being a straightforward task to work on, which it is not.

    New contributors who want to work on it, need to take a few days to understand the issue and then work on a suggestion, that can then be evaluated and discussed in the community.

  24. Jay-Dosi commented on Sep 29, 2025

    @Jay-Dosi

    Hi @StefanieSenger , I would really like to work on this issue

  25. StefanieSenger commented on Oct 1, 2025

    @StefanieSenger
    Member

    Hi @Sacred-Beast, that's not a good task if you're a brand new to scikit-learn, since a lot of the things are under discussion. Please try to find a more straightforward task for yourself. Unfortunately, we don't have good first issues these days, and I cannot recommend a good starting point that fits to a broad profile. It might be documentation, if you put effort and thoughtfulness. Once you have contributed on simpler tasks, you can later work on more complex tasks.

  26. StefanieSenger commented on Oct 1, 2025

    @StefanieSenger
    Member

    @AnneBeyer, that's definitely something for you to have a look into while you familiarise yourself with Displays.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions