How Machine Learning Applies to Cybersecurity