class_docstr: Implementation of https://arxiv.org/pdf/1801.07698.pdf
code: def modify_cosine_of_target_classes(self, cosine_of_target_classes):
      if self.collect_stats:
          with torch.no_grad():
              self.get_angles(
                  cosine_of_target_classes
              )  # For the purpose of collecting stats
      return cosine_of_target_classes - self.margin
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/losses/cosface_loss.py
imports: import torch
  from ..utils import common_functions
  from .large_margin_softmax_loss import LargeMarginSoftmaxLoss
label_desc: Use image node_id 4 for calling the CosFaceLoss obj's underlying member method code with example usage: obj.modify_cosine_of_target_classes(cosine_of_target_classes) and returns: unknown