Predicting the energetic proton flux with a machine learning regression algorithm