A deep learning model is being trained for a binary classification task. The output layer uses a sigmoid activation and the loss function is binary cross-entropy. If the model outputs a probability of 0.9 for a sample with true label 1, what is the contribution of this sample to the loss?
Answer
-log(0.9)
Explanation
Binary cross-entropy loss for a true label y=1 is -log(p), where p is the predicted probability. Thus, the loss is -log(0.9).
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which of the following is a common method for reducing the memory footprint of a deep learning model during inference?
View question →
Which of the following techniques is commonly used to reduce the memory footprint of a deep learning model during inference without significantly sacrificing accuracy?
View question →
In the context of deep learning, what is 'multi-task learning'?
View question →
In a convolutional neural network, what is the purpose of a 'receptive field'?
View question →
Which of the following is a key benefit of using residual connections in deep networks?
View question →
Which of the following best describes the 'bias-variance tradeoff' in deep learning?
View question →