This is an implementation of the expectation maximization.
git clone https://github.com/ali92hm/expectation-maximization
The library code is under the algorithm folder. But to see how to use the algorithm you can look at the demo.py script.
python demo.py sample_input/input.csv
The input data consists of a CSV file in the following order:
input_data_value, expectation_of_category_1 , expectation_of_category_2 , ..., expectation_of_category_n
- Python2.7
- Numpy
- Matplotlib (For graphing)
expectation-maximization
├── LICENSE
├── demo.py - Demo of the algorithm in use
├── sample_input
│ └── input.csv - Sample input file
└── algorithm - Algorithm implementation
└── EM.py - Expectation Maximization algorithm