Implemetation of the expectation maximisation algorithm for Gaussian Mixture Models in C++ based off of this article's [1] EM algorithm implentation for Poisson Mixture Models in Python.
After the predicted paramters of the GMM are computed, they are stored as a JSON file to allow for easy export and plotting in Python.
Assuming g++ is the installed compiler,
git clone https://github.com/Linus-J/EM
cd EM
g++ EM_GMM.cpp -o EM_GMM
./EM_GMM
Use the Make_Figures.ipynb notebook to generate both true and predicted plots for your GMM.
For the distribution
For
[1] Gerry Christian Ongko, Implementing Expectation-Maximisation Algorithm from Scratch with Python, Towards Data Science.