Viewing a single comment thread. View all comments

Santhosh999 OP t1_iykgddd wrote

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))

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]

2

Santhosh999 OP t1_iylsz52 wrote

Thanks for clearing my doubt. It is working now.

1