-
Notifications
You must be signed in to change notification settings - Fork 422
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
Type inference for mixture distributions #1307
Comments
If you only work with mixtures of univariate Gaussians, you might want to use Generally, if there are type inference problems with |
Thanks for the recommendation! Unfortunately right now I'm using different mixture models including Poisson, NB etc. Any example would be
Here several of the intermediate variables (including within |
I made a PR with some fixes: #1308 |
Upon further inspection the problem seems to be that |
This seems to be exactly the fix that's needed! Thanks a lot for submitting this. |
I am currently using Distributions.jl with mixture distributions (example: mixture of Gaussians) via
MixtureModel
. I have noticed that the compiler seems unable to perform type inference for basic functions such asmean
andlogpdf
even when theMixtureModel
struct is fully instantiated. Checking the source code these functions are implemented on theUnivariateMixture
. I am currently specialising the functions I need for the specialised types I am working with but I was wondering if there isn't a better way of doing that....The text was updated successfully, but these errors were encountered: