Controlling Epidemics With Mathematical and Machine Learning Models