# Gaussian Mixture Model estimation in Julia 1.0

**URL:** <https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339>\
**Category:** Statistics\
**Created:** [November 9, 2018, 11:45am UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339 "2018-11-09T11:45:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanhevg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tanhevg/32/12025_2.png) [@tanhevg](https://discourse.julialang.org/u/tanhevg)\
**Post date:** [November 9, 2018, 11:45am UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339/1 "2018-11-09T11:45:10Z")

</div>

Hello,

I wonder, if there are any up-to-date Julia packages for GMM estimation? I googled around, and came across [https://github.com/davidavdav/GaussianMixtures.jl](https://github.com/davidavdav/GaussianMixtures.jl) and [https://github.com/lindahua/MixtureModels.jl](https://github.com/lindahua/MixtureModels.jl). Both look outdated. Distributions.jl has support for mixture models, but has no estimation procedure.

Are there other packages that I have missed? Any suggestions on how best to proceed?

Thanks,  
Evgeny

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 9, 2018, 11:51am UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339/2 "2018-11-09T11:51:27Z")

</div>

> [@tanhevg](#):
>
> came across [https://github.com/davidavdav/GaussianMixtures.jl](https://github.com/davidavdav/GaussianMixtures.jl) and [https://github.com/lindahua/MixtureModels.jl](https://github.com/lindahua/MixtureModels.jl). Both look outdated.

I am not sure what you mean, as the last commit for

> **[GitHub - davidavdav/GaussianMixtures.jl: Large scale Gaussian Mixture Models](https://github.com/davidavdav/GaussianMixtures.jl)**
>
> Large scale Gaussian Mixture Models. Contribute to davidavdav/GaussianMixtures.jl development by creating an account on GitHub.

was 9 days ago an its tests pass on Julia v1.0.

---

<div class="post-metadata">

**Author:** ![tanhevg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tanhevg/32/12025_2.png) [@tanhevg](https://discourse.julialang.org/u/tanhevg)\
**Post date:** [November 9, 2018, 11:57am UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339/3 "2018-11-09T11:57:49Z")

</div>

Hmm, fair enough. But here is what I get when I try to install GaussianMixtures:

```julia
 pkg> add GaussianMixtures@0.2.0
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package GaussianMixtures [cc18c42c]:
 GaussianMixtures [cc18c42c] log:
 ├─possible versions are: [0.0.1-0.0.12, 0.1.0, 0.2.0] or uninstalled
 ├─restricted to versions 0.2.0 by an explicit requirement, leaving only versions 0.2.0
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left

```

Not sure what this means…

---

<div class="post-metadata">

**Author:** ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)\
**Post date:** [November 9, 2018, 12:20pm UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339/4 "2018-11-09T12:20:00Z")

</div>

what happens if you just write

```julia
add GaussianMixtures

```

(or: why did you add `@0.2.0` ?)

---

<div class="post-metadata">

**Author:** ![tanhevg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tanhevg/32/12025_2.png) [@tanhevg](https://discourse.julialang.org/u/tanhevg)\
**Post date:** [November 9, 2018, 12:24pm UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339/5 "2018-11-09T12:24:37Z")

</div>

> what happens if you just write …

The same thing happens. I added the version explicitly, hoping that this would fix it.

When I go

```julia
pkg> dev GaussianModels

```

The package gets cloned from Git, and all the dependencies get built and the example works fine. So looks like something got tripped up in the package manifest.

---

<div class="post-metadata">

**Author:** ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)\
**Post date:** [November 9, 2018, 12:59pm UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339/6 "2018-11-09T12:59:52Z")

</div>

What’s the output of `] st`?

---

<div class="post-metadata">

**Author:** ![mohamed82008](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamed82008/32/18171_2.png) [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Post date:** [November 9, 2018, 1:08pm UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339/7 "2018-11-09T13:08:02Z")

</div>

GaussianMixtures.jl seems to have Logging.jl in its deps which shows no signs of supporting Julia 1.0, so may be this is a case of [Package compatibility caps](https://discourse.julialang.org/t/package-compatibility-caps/15301), worth filing an issue.

---

<div class="post-metadata">

**Author:** ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Post date:** [November 9, 2018, 2:41pm UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339/9 "2018-11-09T14:41:42Z")

</div>

The update to 1.0 was just not tagged. Use `]add GaussianMixtures#master`

---

<div class="post-metadata">

**Author:** ![floswald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/floswald/32/195_2.png) [@floswald](https://discourse.julialang.org/u/floswald)\
**Post date:** [July 3, 2019, 12:16pm UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339/10 "2019-07-03T12:16:53Z")

</div>

hi all,

just trying to get a sense of who is actively working on this right now. I just submitted a [PR](https://github.com/davidavdav/GaussianMixtures.jl/pull/42) to fix the test suite and I would be interested to work on different EM implementations. could do with a little help though. anyone?
