sigmoid_cross_entropy_with_logits(
_sentinel=None,
labels=None,
logits=None,
name=None
)
Defined in tensorflow/python/ops/nn_impl.py
.
See the guide: Neural Network > Classification
Computes sigmoid cross entropy given logits
.
Measures the probability error in discrete classification tasks in which eachclass is independent and not mutually exclusive. For instance, one couldperform multilabel classification where a picture can contain both an elephantand a dog at the same time.
For brevity, let x = logits
, z = labels
. The logistic loss is
z * -log(sigmoid(x)) + (