train_magma function

Training Magma with an EM algorithm