Multinomial classifier