You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had issue with keras.metrics.AUC(name='auc', multi_label=True, num_labels=4).
It completed training and returned error:
ValueError: Number of labels is not consistent.. Specified by tensor ExpandDims:0 dimension 1. Tensor assert_shapes/ReadVariableOp:0 dimension 1 must have size 1. Received size 4, shape (200, 4)
Please help me to solve it.
The text was updated successfully, but these errors were encountered:
Can you detail what you are trying to do with multi_label and how is your model configured?
Points to explore:
Note that AUC is fundamentally a binary classification method. Are you trying to solve a multi-class or a binary-multi-label task? How would you want this AUC to be computed?
TF-DF supports binary and multi-class classification. However it does not support multi-label classification. However, you can combine multiple TF-DF models into a multi-label model.
The signature of keras's AUC (see https://www.tensorflow.org/api_docs/python/tf/keras/metrics/AUC) is not well documented in the case of multi-label. I would run some tests to determine what the shape of the predictions should be in your case. You can then check the shape of the model's predictions and see if they match.
I had issue with keras.metrics.AUC(name='auc', multi_label=True, num_labels=4).
It completed training and returned error:
Please help me to solve it.
The text was updated successfully, but these errors were encountered: