Machine-learned real-time classification of Palomar Transient Factory events as the ramp toward petascale synoptic surveys.