Skip to content

Add example comparing HuberRegressor and LinearRegression #31381

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 2 commits into
base: main
Choose a base branch
from

Conversation

Soumyaatanna
Copy link

Reference Issues/PRs

#30995

What does this implement/fix?

This PR adds a new example in examples/linear_model/ that demonstrates the use of HuberRegressor for robust regression on data with outliers. It compares its performance visually with LinearRegression. This is useful for users learning about robust regression techniques. This example also shows how it performs compared to LinearRegression on noisy data with outliers. It includes a simple plot to help users understand the benefit of robust regression.

Any other comments?

No other comments.

Copy link

github-actions bot commented May 18, 2025

❌ Linting issues

Merging with upstream/main might fix / improve the issues if you haven't done that since 21.06.2023.

This PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling pre-commit hooks. Instructions to enable them can be found here.

You can see the details of the linting issues under the lint job here


ruff check

ruff detected issues. Please run ruff check --fix --output-format=full locally, fix the remaining issues, and push the changes. Here you can see the detected issues. Note that the installed ruff version is ruff=0.11.7.

Generated for commit: 413fd0a. Link to the linter CI: here

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.

1 participant