Predicting Coronal Mass Ejections Using Machine Learning Methods