Skip to content

Support alpha=0 in Ridge#6236

Merged
rapids-bot[bot] merged 2 commits intorapidsai:branch-25.02from
jcrist:ridge-alpha-0
Jan 24, 2025
Merged

Support alpha=0 in Ridge#6236
rapids-bot[bot] merged 2 commits intorapidsai:branch-25.02from
jcrist:ridge-alpha-0

Conversation

@jcrist
Copy link
Copy Markdown
Member

@jcrist jcrist commented Jan 17, 2025

When alpha = 0, Ridge is equivalent to a LinearRegression. Previously we checked if alpha was positive, scikit-learn instead requires that alpha is non-negative. This updates the check and adds a test.

When `alpha = 0`, `Ridge` is equivalent to a `LinearRegression`.
Previously we checked if alpha was positive, scikit-learn instead
requires that alpha is non-negative. This updates the check and adds a
test.
@jcrist jcrist requested a review from a team as a code owner January 17, 2025 23:28
@jcrist jcrist requested review from betatim and vyasr January 17, 2025 23:28
@github-actions github-actions Bot added the Cython / Python Cython or Python issue label Jan 17, 2025
@jcrist jcrist added feature request New feature or request non-breaking Non-breaking change labels Jan 17, 2025
Copy link
Copy Markdown
Contributor

@wphicks wphicks left a comment

Choose a reason for hiding this comment

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

Love this kind of change! More compatibility on edge cases makes me very happy. Let's merge!

@wphicks
Copy link
Copy Markdown
Contributor

wphicks commented Jan 21, 2025

Currently blocked by __dataframe__ deprecation. This should be fixed shortly.

@dantegd
Copy link
Copy Markdown
Member

dantegd commented Jan 23, 2025

/merge

@rapids-bot rapids-bot Bot merged commit 8753e76 into rapidsai:branch-25.02 Jan 24, 2025
@jcrist jcrist deleted the ridge-alpha-0 branch January 24, 2025 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cython / Python Cython or Python issue feature request New feature or request non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants