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

Moments of MixtureModel no longer includes components with 0 probability #271

Merged
merged 1 commit into from
Aug 25, 2014
Merged

Moments of MixtureModel no longer includes components with 0 probability #271

merged 1 commit into from
Aug 25, 2014

Conversation

LaurenceA
Copy link

If, some mixture components have 0 probability, but moments that are Inf or NaN, e.g.

Truncated(Normal(), 10, Inf)

then this can cause the mixture moments to be Inf or NaN, even when they finite.

Here, we fix this, by not incorporating mixture components with 0 probability in the moment computation.

@LaurenceA
Copy link
Author

Does anyone know why the build is failing?

@johnmyleswhite
Copy link
Member

These look like incidental errors. Do tests pass on your local machine?

@LaurenceA
Copy link
Author

Tests appear to pass.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling bbc9403 on LaurenceA:mixture-moments into * on JuliaStats:master*.

lindahua added a commit that referenced this pull request Aug 25, 2014
Moments of MixtureModel no longer includes components with 0 probability
@lindahua lindahua merged commit 3d661c2 into JuliaStats:master Aug 25, 2014
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

Successfully merging this pull request may close these issues.

None yet

4 participants