Added an option to disable the dot pattern module during the training
phase.