Distance metric learning for medical prediction.