# Which loss function should I use for binary classification?

I plan to create a neural network using Python, Keras and TensorFlow. All the tutorials I have seen so far are concerned with image recognition. However, the goal of my program would be to take in 10+ inputs and calculate a binary output (true/false) instead. What would you suggest me to learn for this specific purpose?

• Hi and welcome to this community! I've edited your post to make it clearer, but I might have changed your original intent. If that's so, please, re-edit your question again. – nbro Jul 8 at 10:09
• Thank you @nbro! Actually I might add: I need dual input (a separate channel for both true and false ) because I might take their difference and individual values into consideration before making a final decision. – IUBIU Jul 8 at 10:25
• Maybe you're looking for softmax, but I'm not sure. I don't understand what you mean by "I need dual input (a separate channel for both true and false)", given that in your question you say that you will have more than 10 inputs. Can you please clarify this? – nbro Jul 8 at 10:28
• Dual output, sorry. I meant to write output. – IUBIU Jul 8 at 10:31
• You don't need dual output you can have 1 output that represents probability of being true, and probability of being false would be $1 - p(true)$ – Brale_ Jul 8 at 10:55