When Machine Learning Meets Privacy: A Survey and Outlook