You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding more functionality to DecisionBoundaryDisplay #27462
I have used DecisionBoundaryDisplay to plot from_estimator of a DecisionTreeClassifier as in this example.
Based on that I would suggest further improvements:
add a title to the plot that clearly states which response_method from which estimator was used in the plot
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
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.
“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.”
“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.”
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.
“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.
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?
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!
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.
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.
Activity
StefanieSenger commentedon Jan 28, 2025
I have used
DecisionBoundaryDisplayto plotfrom_estimatorof aDecisionTreeClassifieras in this example.Based on that I would suggest further improvements:
response_methodfrom which estimator was used in the plotpredict_proba, classes forproba, raw values fordecision_function)Do you think this would be useful, @glemaitre?
glemaitre commentedon Mar 1, 2025
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.
ansamz commentedon Jun 16, 2025
/take
Adding more functionality to DecisionBoundaryDisplay scikit-learn#27462
PardeepGothriwal commentedon Jul 3, 2025
“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.”
ansamz commentedon Jul 3, 2025
Unfortunately I didn't get to it
StefanieSenger commentedon Jul 4, 2025
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.
PardeepGothriwal commentedon Jul 4, 2025
Thanks! I’ll start working on it and will keep you posted.
3 remaining items
StefanieSenger commentedon Jul 6, 2025
Oh nice, @ansamz!
Vishal35198 commentedon Jul 12, 2025
Harin22 commentedon Aug 2, 2025
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?
vsree345 commentedon Aug 18, 2025
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.
jimoholayinka01 commentedon Aug 23, 2025
Hi, I’d like to contribute to this issue. I had a quick question about the
represent the max of probabilitypoint—could you clarify what the intended behavior should be?Once I understand that, I’d love to take it on. Thanks!
sridharbalamurugan commentedon Sep 5, 2025
sridharbalamurugan commentedon Sep 5, 2025
AtharvaAiren commentedon Sep 7, 2025
/take
StefanieSenger commentedon Sep 8, 2025
I remove the
good first issuelabel 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.
Jay-Dosi commentedon Sep 29, 2025
Hi @StefanieSenger , I would really like to work on this issue
StefanieSenger commentedon Oct 1, 2025
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.
StefanieSenger commentedon Oct 1, 2025
@AnneBeyer, that's definitely something for you to have a look into while you familiarise yourself with Displays.