Learning Realistic Patterns from Unrealistic Stimuli: Generalization and Data Anonymization