Applying Machine Learning in Cyber Security