Models that learn p(y∣x)p(y \mid x)p(y∣x) are called Discriminative Model because the goal is to discriminate between different yyy's.