Why does binary accuracy give high accuracy while categorical accuracy give low accuracy, in a multi-class classification problem?
问题 I'm working on a multiclass classification problem using Keras and I'm using binary accuracy and categorical accuracy as metrics. When I evaluate my model I get a really high value for the binary accuracy and quite a low one in for the categorical accuracy. I tried to recreate the binary accuracy metric in my own code but I am not having much luck. My understanding is that this is the process I need to recreate: def binary_accuracy(y_true, y_pred): return K.mean(K.equal(y_true, K.round(y_pred