class_docstr: History of changes:
  python 2.x to python 3.x.
  merge utils.py into eval to save one file.
  reference: https://github.com/LisaAnne/LocalizingMoments/blob/master/utils/eval.py
  Code to evaluate your results on the DiDeMo dataset.
class_docstr_tok: ["History","of","changes",":","python","2.x","to","python","3.x",".","merge","utils.py","into","eval","to","save","one","file",".","reference",":","https",":","\/\/github.com\/LisaAnne\/LocalizingMoments\/blob\/master\/utils\/eval.py","Code","to","evaluate","your","results","on","the","DiDeMo","dataset","."]
code: def print_computed_metrics(self, metrics):
      rank1 = metrics["rank1"]
      rank5 = metrics["rank5"]
      miou = metrics["miou"]
      # print("Average rank@1: %f" % rank1)
      # print("Average rank@5: %f" % rank5)
      # print("Average iou: %f" % miou)
  
      print(
          "Average rank@1: {:.4f} Average rank@5: {:.4f} Average iou: {:.4f}".format(
              rank1, rank5, miou
          )
      )
  
imports: import numpy
  import json
label_desc: Use image node_id 3 for calling the DiDeMoMetric obj's underlying member method code with example usage: obj.print_computed_metrics(metrics) without return types