How to Choose Loss Functions When Training Deep Learning Neural Networks code example
Example: loss funfction suited for softmax
model.compile(loss='categorical_crossentropy', optimizer=opt, metrics=['accuracy'])
model.compile(loss='categorical_crossentropy', optimizer=opt, metrics=['accuracy'])