Repository navigation
MNT DecisionBoundaryDisplay: change default colors and sampling - #33709
jeremiedbb merged 14 commits into
Conversation
|
|
||
| multiclass_colors : list of color-like, str, or None | ||
| Color specification for multiclass plots. | ||
| multiclass_colors : str, or list of matplotlib colors, default=None |
There was a problem hiding this comment.
I unified the docstrings for multiclass_colors based on the one in line 465 below. This now also includes a reference to matplotlib colors here (as requested by @lucyleeow here)
| Returns | ||
| ------- | ||
| colors : list or ndarray of shape (n_classes, 4) | ||
| colors : ndarray of shape (n_classes, 4) |
Co-authored-by: Jérémie du Boisberranger <[email protected]>
…ub.com/AnneBeyer/scikit-learn into dbd_change_default_colors_and_sampling
ogrisel
left a comment
There was a problem hiding this comment.
LGTM once the conflict is resolved and CI is green again.
Co-authored-by: Jérémie du Boisberranger <[email protected]>
|
Resolving the merge conflict in the GitHub editor broke the diff for |
I would fetch this branch locally, revert to the state just before the merge, and do the merge again locally. |
|
I'm afraid I made it worse... |
f7bee49 to
018f03a
Compare
|
Alright, I fixed the diff with a clean merge now. Incorporating the |


Reference Issues/PRs
Towards #33115, specifically the discussion around point 2.
What does this implement/fix? Explain your changes.
The default colors for the display (with <10 classes) are changed from
tab10to use the more accessible Petroff colors (following this paper and the matplotlib discussion here).I also unified the sampling strategy for continuous and discreet colormaps, as this turned out to overcomplicate things by breaking consistency with how it is done by matplotlib.
I also adapted and unified the docstrings in all places where the color selection is mentioned and extended the test accordingly.
AI usage disclosure
I used AI assistance for:
Any other comments?