Updated train/test to use BernoulliMM.