Machine Learning for Diabetes and Mortality Risk Prediction From Electronic Health Records