Skip to content

MNT mean_tweedie_deviance refactoring into a sklearn._loss module #15245

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

Closed
wants to merge 5 commits into from

Conversation

rth
Copy link
Member

@rth rth commented Oct 14, 2019

This moves some definitions of the Tweedie distribution, used in mean_tweedie_deviance under a separate sklearn._loss.glm_deviance module as discussed in #14300 (comment) to allow re-using these deviance scores in GLM models #14300 without creating circular import issues.

The class hierarchy in sklearn._loss.glm_deviance is necessary for #14300 and indeed this implements part of the refactoring necessary for that PR hoping to make it easier to review.

This should not change the public API, just some refactoring with more tests for mean_tweedie_deviance.

Might also help for #15244

Also a first step to address #15123

@agramfort
Copy link
Member

@rth you need to rebase.

@rth
Copy link
Member Author

rth commented Mar 3, 2020

Closing since this will be redundant once #14300 is merged.

@rth rth closed this Mar 3, 2020
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