Machine learning tool refines personalized immunotherapy