Machine Learning for Cyber Physical Systems