How Can Deep Learning Be Applied to Predict Solar Flares?