Deep Learning In Personalized Medicine: Applications In Patient Similarity, Prognosis, And Optimal Treatment Selection