-
Notifications
You must be signed in to change notification settings - Fork 9
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
Allow dist to be a Vector{Distribution{Univariate, Continuous}}
in Baum Welch
#101
Comments
Hi @dmetivie, thanks for reporting this! |
Thanks! |
That's my point, you only have the flexibility as long as your distribution families can be |
I think I found a bug (or maybe this was already discussed elsewhere but could not find it).
If you do
works but if you just change
dists = Vector{Distribution{Univariate, Continuous}}([Normal(-0.8), Normal(0.8)])
it no longer works. (and more generally this happens when you have a vector of different distributions let say aExponential
and aGamma
)Since your package is so clean, it was very easy to find the issue and a fix (maybe not the best? + I don't know if it happens only for
Distributions.jl
)See your code here and a fix here.
The type was infered from the vector of distribtutions and not from the distribution element it self.
The text was updated successfully, but these errors were encountered: