-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
[feature request] Generic fallback for non-supported distributions ? #67
Comments
Currently we have Expectations.jl/src/iterable.jl Line 81 in 9b99daf
If we're throwing an error instead of using it, that's definitely a mistake. (Though IMO there should be a warning.) I'll look into it. (There is also Expectations.jl/src/iterable.jl Line 116 in 9b99daf
|
I think this is the method I hitted : Expectations.jl/src/iterable.jl Lines 96 to 108 in c36874e
In particular with the Pareto case. While |
It would be neat if there was a generic fallback for non-supported distributions. I can come up with a simple solution for continuous distributions:
but i need to think a bit more for discrete infinite supports.
Edit: There is ageneric fallback in
Distributions.jl
implemented there: https://github.com/JuliaStats/Distributions.jl/blob/master/src/functionals.jlSo maybe this is just an interface issue,
Expectations.jl
should not throw when it does not know the distribution but simply use the Distributions.jl one. Thanks @devmotion for the link.The text was updated successfully, but these errors were encountered: