Skip to content

Docs: Update example 10 with custom Iris class names (#737)#1152

Merged
rasbt merged 1 commit into
rasbt:masterfrom
N-Harsha-Vardhan-Dev:fix-737-custom-labels
Jan 8, 2026
Merged

Docs: Update example 10 with custom Iris class names (#737)#1152
rasbt merged 1 commit into
rasbt:masterfrom
N-Harsha-Vardhan-Dev:fix-737-custom-labels

Conversation

@N-Harsha-Vardhan-Dev
Copy link
Copy Markdown
Contributor

Code of Conduct

I have reviewed the Code of Conduct.

Description

This PR updates Example 10 in the plot_decision_regions user guide to demonstrate how to provide custom class names (e.g., actual species names like 'Setosa') for the legend instead of generic placeholders.

  • Updated plot_decision_regions.ipynb with descriptive species labels.
  • Updated the corresponding static image file in the plot_decision_regions_files directory to reflect these changes.

Related issues or pull requests

Fixes #737

Pull Request Checklist

  • Added a note about the modification or contribution to the ./docs/sources/CHANGELOG.md file (if applicable)
  • Added appropriate unit test functions in the ./mlxtend/*/tests directories (if applicable)
  • Modify documentation in the corresponding Jupyter Notebook under mlxtend/docs/sources/ (if applicable)
  • Ran PYTHONPATH='.' pytest ./mlxtend -sv and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g., PYTHONPATH='.' pytest ./mlxtend/classifier/tests/test_stacking_cv_classifier.py -sv)
  • Checked for style issues by running flake8 ./mlxtend

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Copy Markdown
Owner

@rasbt rasbt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rasbt rasbt merged commit 9452046 into rasbt:master Jan 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom class names for plot_decision_regions

2 participants