Here, the authors show that during a discrimination task, the mouse visual cortex does not encode the orientations of the cues but a categorical probability predicting the animal’s choice.