docstr: This is called at the end to get the value for the whole epoch.
docstr_tok: ["This","is","called","at","the","end","to","get","the","value","for","the","whole","epoch","."]
code: def compute(self):
      """
      This is called at the end to get the value for the whole epoch.
      """
      return self._compute_accuracy_from_stats(
          self.num_true_positives, self.total_exemples
      )
  
file_path: poutyne/examples/medium_post/train_with_custom_metrics.py
imports: import torch
  import torch.nn
  from torch.utils.data import random_split
  from torchvision.datasets import MNIST
  from torchvision.transforms import ToTensor
  from poutyne import Model, Metric
label_desc: Use image node_id 7 for calling the MyAccuracyMetric obj's underlying member method code with example usage: obj.compute() and returns: self