original_docstring: 
          Mean of total loss calculation. Both reconstruction loss and classification loss.
          
docstring: Mean of total loss calculation. Both reconstruction loss and classification loss.
docstring_tokens: Mean of total loss calculation . Both reconstruction loss and classification loss .
code: def loss(self, x, reconstructed, data, labels, lambda_=0.5, m_plus=0.9, m_minus=0.1):
          '''
          Mean of total loss calculation. Both reconstruction loss and classification loss.
          '''
          total_loss = self.margin_loss(x, labels, lambda_, m_plus, m_minus) + self.reconstruction_loss(reconstructed, data)
          return total_loss.mean()
code_tokens: def loss ( self , x , reconstructed , data , labels , lambda_ = 0.5 , m_plus = 0.9 , m_minus = 0.1 ) : total_loss = self . margin_loss ( x , labels , lambda_ , m_plus , m_minus ) + self . reconstruction_loss ( reconstructed , data ) return total_loss . mean ( )
short_docstring: Mean of total loss calculation.
short_docstring_tokens: Mean of total loss calculation .
comment: '''
          Mean of total loss calculation. Both reconstruction loss and classification loss.
          '''