training with noisy patterns