Learning Optical Flares