class_docstr: Implementation of https://arxiv.org/pdf/1612.02295.pdf
class_docstr_tok: ["Implementation","of","https",":","\/\/arxiv.org\/pdf\/1612.02295.pdf"]
code: def get_angles(self, cosine_of_target_classes):
      angles = torch.acos(torch.clamp(cosine_of_target_classes, -1, 1))
      if self.collect_stats:
          with torch.no_grad():
              self.avg_angle = np.degrees(torch.mean(angles).item())
      return angles
  
imports: import math
  import numpy
  import scipy.special
  import torch
  from ..distances import CosineSimilarity
  from ..utils import common_functions
  from ..utils import loss_and_miner_utils
  from .base_metric_loss_function import BaseMetricLossFunction
  from .mixins import WeightRegularizerMixin
label_desc: Use image node_id 5 for calling the LargeMarginSoftmaxLoss obj's underlying member method code with example usage: obj.get_angles(cosine_of_target_classes) and returns: angles