Automated Prediction of Solar Flares