sparse categorical acc should have the same result as categorical acc.
For example, with 3 classes, given sparse_true_label = [0, 1, 1], it's equivalent in categorical labels is dense_true_label = [[1, 0, 0], [0, 1, 0], [0, 1, 0]]. With the same predictions
sparse categorical acc should have the same result as categorical acc.
For example, with 3 classes, given
sparse_true_label = [0, 1, 1]
, it's equivalent in categorical labels isdense_true_label = [[1, 0, 0], [0, 1, 0], [0, 1, 0]]
. With the same predictionsThey should produce the same acc which is
[1, 0 ,1]
The current implementation use max operator and produce a wrong output
[0, 0, 1]