class_docstr: Base class for models
class_docstr_tok: ["Base","class","for","models"]
docstr: Make loss function, consists of data loss and regularization loss
  
  Returns:
      object: Loss value.
docstr_tok: ["Make","loss","function",",","consists","of","data","loss","and","regularization","loss","Returns",":","object",":","Loss","value","."]
code: def _get_loss(self):
      """Make loss function, consists of data loss and regularization loss
  
      Returns:
          object: Loss value.
      """
      self.data_loss = self._compute_data_loss()
      self.regular_loss = self._compute_regular_loss()
      self.loss = tf.add(self.data_loss, self.regular_loss)
      return self.loss
  
imports: from os.path import join
  import abc
  import time
  import os
  import numpy
  import tensorflow
  from recommenders.models.deeprec.deeprec_utils import cal_metric
label_desc: Use image node_id 3 for calling the BaseModel obj's underlying member method code with example usage: obj._get_loss() and returns: self