Skip to content

DOC: Add link to plot_monotonic_constraints.py example #31478

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mithunkar
Copy link

Reference Issues/PRs

Towards #30621

What does this implement/fix? Explain your changes.

Adds a link to the plot_monotonic_constraints.py example in the HistGradientBoostingRegressor docstring.

Any other comments?

Copy link

github-actions bot commented Jun 4, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 9ef17a3. Link to the linter CI: here

Copy link
Member

@virchan virchan left a comment

Choose a reason for hiding this comment

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

Thank you for the PR, @mithunkar! I have a few comments.

Comment on lines +1492 to +1495
For an example illustrating the use of monotonic constraints with
`HistGradientBoostingRegressor`, see:
:ref:`sphx_glr_auto_examples_ensemble_plot_monotonic_constraints.py`

Copy link
Member

Choose a reason for hiding this comment

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

I think this would be better placed under the monotonic_cst parameter in the docstrings of HistGradientBoostingRegressor and HistGradientBoostingClassifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants