A Java program which implement the variable elimination using the expectation maximization algorithm.
Basically, the program will import the data from trainData.txt and store them in a matrix. Then the program will run the expectation maximization algorithm on the testData.txt and predict results by variable elimination.