Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

extreme_stable case for mean_tweedie_deviance #29258

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

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

EmilyXinyi
Copy link
Contributor

@EmilyXinyi EmilyXinyi commented Jun 14, 2024

Reference Issues/PRs

towards #26024
related to #28106

What does this implement/fix? Explain your changes.

I noticed that for mean_tweedie_deviance we never check for extreme stable cases (power<0) so I added a test for it 😺
Upon testing I also found some spots in the actual mean_tweedie_deviance method that we either have missed (still using np) or little errors that break unit tests so I fixed them.

Any other comments?

Not sure how to update changelogs or if it's necessary to do that

Copy link

github-actions bot commented Jun 14, 2024

✔️ Linting Passed

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

Generated for commit: 4fb1371. Link to the linter CI: here

@EmilyXinyi
Copy link
Contributor Author

sklearn/metrics/tests/test_common.py Outdated Show resolved Hide resolved
sklearn/metrics/_regression.py Show resolved Hide resolved
@ogrisel
Copy link
Member

ogrisel commented Jun 17, 2024

I put the "no changelog needed" label because array API support for tweedie deviance metrics is not released yet.

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

Once the following suggestion is accepted, LGTM.

The macOS failures are unrelated and will be fixed by #29281.

sklearn/metrics/tests/test_common.py Show resolved Hide resolved
@ogrisel
Copy link
Member

ogrisel commented Jun 17, 2024

Also, please rerun the colab tests once you added the missing test case to this branch.

@ogrisel
Copy link
Member

ogrisel commented Jun 20, 2024

I triggered a CUDA GPU CI run with the last commit:

If green, +1 for merge on my side.

EDIT: CUDA tests are green.

@EmilyXinyi
Copy link
Contributor Author

Also, please rerun the colab tests once you added the missing test case to this branch.

Also just reran the colab tests and they seem to be passing.

Copy link
Contributor

@OmarManzoor OmarManzoor left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @EmilyXinyi

@OmarManzoor OmarManzoor merged commit 56dbfd0 into scikit-learn:main Jul 8, 2024
30 checks passed
@EmilyXinyi EmilyXinyi deleted the array_API_extreme_stable branch August 12, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.