binary classification, xentropy mismatch , invalid argument ( Received a label value of 1 which is outside the valid range of [0, 1) )
问题 I'm working on a Deep neural Network for text-classification but I got a problem with my xentropy . I'm following a course with multiclass classification and I try to adapt it to my binary classification problem. The course used softmax for multiclass as : xentropy = tf.nn.sparse_softmax_cross_entropy_with_logits(labels=y, logits=logits) but doing so , I had that error : InvalidArgumentError (see above for traceback): Received a label value of 1 which is outside the valid range of [0, 1).