tf.contrib.losses.hinge_loss()

tf.contrib.losses.hinge_loss(logits, target, scope=None)

Method that returns the loss tensor for hinge loss.

Args:
  • logits: The logits, a float tensor.
  • target: The ground truth output tensor. Its shape should match the shape of logits. The values of the tensor are expected to be 0.0 or 1.0.
  • scope: The scope for the operations performed in computing the loss.
Returns:

A Tensor of same shape as logits and target representing the loss values across the batch.

Raises:
  • ValueError: If the shapes of logits and target don't match.
doc_TensorFlow
2016-10-14 13:07:10
Comments
Leave a Comment

Please login to continue.