Skip to content
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

parameters do not have consistent types #631

Open
MarcAntoineSchmidtQC opened this issue Apr 12, 2023 · 0 comments
Open

parameters do not have consistent types #631

MarcAntoineSchmidtQC opened this issue Apr 12, 2023 · 0 comments

Comments

@MarcAntoineSchmidtQC
Copy link
Member

Parameters p (power in the Tweedie distribution) and theta (from #627), are handled in an unintuitive way. They request that the input be a 64-bit float or integer, then transform this into a 32-bit float. This means that setting the value of these attributes to the same value it currently holds raises an error. Example:

dist = glum.NegativeBinomialDistribution()
dist.theta = dist.theta  # This fails.
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

No branches or pull requests

1 participant