# Pastebin bbxGYtBA @zoq: @rcurtin: I am trying to use categorical crossentropy on softmax layer in a ann network. I am unsure about how to integrate softmax layer in ann. I see that LogSoftMax is available with mlpack under ann. SoftmaxRegression is also available in the methods. Would you please help me out how to proceed for softmax in the last layer of ann. Something like model.Add >(); What I want is a vector showing probability of a specific class. Then using categorical crossentropy to compute gradients.