Machine learning for clinical trials and precision medicine