Implement discriminative training