DOC refactor examples/ensemble/plot_forest_iris.py to use DecisionBoundaryDisplay - #34556
Conversation
|
Thank you for opening your first pull request to scikit-learn! 🎉 To help get your contribution reviewed, please make sure that:
|
ArturoAmorQ
left a comment
There was a problem hiding this comment.
Hi @LuShadowX thanks for contributing! Couple of suggestions to maintain the intended behavior and remove the UserWarnings.
You can also remove unused variable plot_step = 0.02.
And now that the defined variable cmap = plt.cm.RdYlBu is used only once in the scatterplot, I think you can explicitly set it there for better code readability, then remove the definition.
|
Thanks for the review — all applied in 9382b4f. Both suggestions taken as-is, plus Confirmed against a 1.10.dev0 nightly with |
ArturoAmorQ
left a comment
There was a problem hiding this comment.
Otherwise LGTM. Thanks again @LuShadowX
Co-authored-by: Arturo Amor <[email protected]>
|
happy to help. if u want me to work on anything fell free to ask. |
Towards #33980