Foundations of Deep Learning for Predictive Analytics