class_docstr: Abstract class for the loss function.
class_docstr_tok: ["Abstract","class","for","the","loss","function","."]
docstr: Interface to the external world.
  
  This function does the input checks, preprocesses input and finally applies loss function.
  
  Parameters
  ----------
  scores_pos : tf.Tensor
      A tensor of scores assigned to positive statements.
  scores_neg : tf.Tensor
      A tensor of scores assigned to negative statements.
  
  Returns
  -------
  loss : tf.Tensor
      The loss value that must be minimized.
docstr_tok: ["Interface","to","the","external","world",".","This","function","does","the","input","checks",",","preprocesses","input","and","finally","applies","loss","function",".","Parameters","--","--","--","--","--","scores_pos",":","tf.Tensor","A","tensor","of","scores","assigned","to","positive","statements",".","scores_neg",":","tf.Tensor","A","tensor","of","scores","assigned","to","negative","statements",".","Returns","--","--","--","-","loss",":","tf.Tensor","The","loss","value","that","must","be","minimized","."]
code: def _apply_loss(self, scores_pos, scores_neg):
      """Interface to the external world.
  
      This function does the input checks, preprocesses input and finally applies loss function.
  
      Parameters
      ----------
      scores_pos : tf.Tensor
          A tensor of scores assigned to positive statements.
      scores_neg : tf.Tensor
          A tensor of scores assigned to negative statements.
  
      Returns
      -------
      loss : tf.Tensor
          The loss value that must be minimized.
      """
      msg = "This function is a placeholder in an abstract class."
      logger.error(msg)
      raise NotImplementedError(msg)
  
imports: import abc
  import logging
  import six
  import tensorflow
  from tensorflow.python.keras import metrics
  from tensorflow.python.keras.utils import losses_utils
  from tensorflow.python.ops import math_ops
label_desc: Use image node_id 5 for calling the Loss obj's underlying member method code with example usage: obj._apply_loss(scores_pos, scores_neg) without return types