code: def calc_loss(self, embedding):
          
          Hnew = self.compute_dual_rmetric(Ynew=embedding)
          return self.rieman_loss(Hnew=Hnew)
docs: Helper function to calculate rieman loss given new embedding