I understand that one of the main points of using the sigmoid function on responses in binary classification is that we can interpret value outputted as the probability that an instance belongs to 1 of the classes say A, and as it's binary classification, 1-(this probability) gives the probability of it belonging to class B.
My question is: what if there are more than 2 classes, say n, what is the generalization of the sigmoid function?