-
Notifications
You must be signed in to change notification settings - Fork 36
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
Invalid weights under repeated data #21
Comments
Thanks. Yes, it is likely that repeated data ends up in a gaussian on its own, which will lead to vanishing variance. I suppose the relevant code could be revised on that point. I've never really been charmed by the logic in the code at that point. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have repeated data you can end up with NaNs in your weights.
Results in
It looks like
varfloor
is a parameter inem!
but it is not exposed toGMM
.One problem is that, in
em!
, the linetooSmall = any(gmm.Σ .< varfloor, 2)
will not find the offending NaN values. Also, it looks likeN
andF
fromstats()
are all NaN as well, so the mean is also NaN.The text was updated successfully, but these errors were encountered: