Challenges in Developing Learning Algorithms to Personalize Treatment in Real Time