Hello,
I'm trying to add weights to the classes during training right before the final softmax layer, the output shape of the layer is (batch_size, length, nb_class) with one-hot-label of the same size, and I'm using categorical_crossentropy loss here.
I've tried to use class_weight in fit and send class weight as dictionary: {0:w1, 1:w2, ...}, but got the error: Exception: class_weight not supported for 3+ dimensional targets.
Is there any way to do this? Any suggestions will be greatly appreciated!