Потеря Funfction подходит для Softmax
model.compile(loss='categorical_crossentropy', optimizer=opt, metrics=['accuracy'])
Yucky Yacare
model.compile(loss='categorical_crossentropy', optimizer=opt, metrics=['accuracy'])