-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
FIX: Regression in DecisionBoundaryDisplay.from_estimator with colors and plot_method='contour' #31553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
FIX: Regression in DecisionBoundaryDisplay.from_estimator with colors and plot_method='contour' #31553
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1afc804
Fix: DecisionBoundaryDisplay for `contour` and `cmap` (issue scikit-l…
jshn9515 a80ef4c
Update corresponding tests
jshn9515 c72e425
Reformat with ruff
jshn9515 1a9d4e0
Merge branch 'scikit-learn:main' into fix-DecisionBoundary
jshn9515 1be1a98
Fix: add handling logic when `colors` is a list
jshn9515 7ca868f
ENH: add tests for cmap and colors handling in DecisionBoundaryDisplay
jshn9515 04b3528
Remove conflicting check for 'cmap' and 'colors'
jshn9515 e97c857
Ignore 'cmap' and 'colors' arguments in multiclass case
jshn9515 752df3b
Update corresponding tests
jshn9515 714d824
add back the tab10/tab20 logic
jeremiedbb 0b51a48
Update sklearn/inspection/_plot/decision_boundary.py
jeremiedbb e3c0d87
Update warnings for 'cmap' and 'colors' in multiclass case
jshn9515 3351a8d
Update corresponding tests
jshn9515 61065bc
Update changelog
jshn9515 c163647
Reduce code duplication for 'cmap' and 'colors'
jshn9515 1929103
Clarify fixes apply to multiclass case in DecisionBoundaryDisplay
jshn9515 eac9900
Clarify that 'cmap' and 'colors' are ignored in favor of 'multiclass_…
jshn9515 94cbfde
Add blank lines in changelog
jshn9515 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
doc/whats_new/upcoming_changes/sklearn.inspection/31553.fix.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- Fix multiple issues in the multiclass setting of :class:`inspection.DecisionBoundaryDisplay`: | ||
|
||
- `contour` plotting now correctly shows the decision boundary. | ||
- `cmap` and `colors` are now properly ignored in favor of `multiclass_colors`. | ||
- Linear segmented colormaps are now fully supported. | ||
|
||
By :user:`Yunjie Lin <jshn9515>` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.