Envoyer par SMS: Accurate prediction of X-ray pulse properties from a free-electron laser using machine learning