Let's say I have a binary classification problem and I want to solve it by means of FC neural net. So which approach will be correct: 1) define the last layer of NN like this linear(h, 1)
and use Binary Cross entropy 2) define the last layer of NN like this linear(h, 2)
and use Cross entropy. It seems for me that these two approaches are similar. Is it correct?
P.S. This question is more theoretical one, so no any technicalities related to particular framework.