Submitted by Santhosh999 t3_z9dryt in deeplearning
Santhosh999 OP t1_iykgddd wrote
Reply to comment by suflaj in Doubt regarding activation functions by Santhosh999
I am getting an error when tried with 2 neurons and softmax activation func with binary crossentropy loss.
ValueError: logits and labels must have the same shape ((None, 2) vs (None, 1))
suflaj t1_iyktdbc wrote
Well, you have to change your labels from being 1 long to 2 long. If your labels are True or 1 and False or 0, you will need to change them to [0, 1] and [1, 0]
Santhosh999 OP t1_iylsz52 wrote
Thanks for clearing my doubt. It is working now.
Viewing a single comment thread. View all comments