Training Machine Learning Algorithms to Recognize Fraud Patterns