class_docstr: COCO-style evaluation config.
  
  Args:
      pred_field: the name of the field containing the predicted
          :class:`fiftyone.core.labels.Detections`,
          :class:`fiftyone.core.labels.Polylines`, or
          :class:`fiftyone.core.labels.Keypoints`
      gt_field: the name of the field containing the ground truth
          :class:`fiftyone.core.labels.Detections`,
          :class:`fiftyone.core.labels.Polylines`, or
          :class:`fiftyone.core.labels.Keypoints`
      iou (None): the IoU threshold to use to determine matches
      classwise (None): whether to only match objects with the same class
          label (True) or allow matches between classes (False)
      iscrowd ("iscrowd"): the name of the crowd attribute
      use_masks (False): whether to compute IoUs using the instances masks in
          the ``mask`` attribute of the provided objects, which must be
          :class:`fiftyone.core.labels.Detection` instances
      use_boxes (False): whether to compute IoUs using the bounding boxes
          of the provided :class:`fiftyone.core.labels.Polyline` instances
          rather than using their actual geometries
      tolerance (None): a tolerance, in pixels, when generating approximate
          polylines for instance masks. Typical values are 1-3 pixels
      compute_mAP (False): whether to perform the necessary computations so
          that mAP and PR curves can be generated
      iou_threshs (None): a list of IoU thresholds to use when computing mAP
          and PR curves. Only applicable when ``compute_mAP`` is True
      max_preds (None): the maximum number of predicted objects to evaluate
          when computing mAP and PR curves. Only applicable when
          ``compute_mAP`` is True
      error_level (1): the error level to use when manipulating instance
          masks or polylines. Valid values are:
  
          -   0: raise geometric errors that are encountered
          -   1: log warnings if geometric errors are encountered
          -   2: ignore geometric errors
  
          If ``error_level > 0``, any calculation that raises a geometric
          error will default to an IoU of 0
class_docstr_tok: ["COCO-style","evaluation","config",".","Args",":","pred_field",":","the","name","of","the","field","containing","the","predicted",":","class",":","`","fiftyone.core.labels.Detections","`",",",":","class",":","`","fiftyone.core.labels.Polylines","`",",","or",":","class",":","`","fiftyone.core.labels.Keypoints","`","gt_field",":","the","name","of","the","field","containing","the","ground","truth",":","class",":","`","fiftyone.core.labels.Detections","`",",",":","class",":","`","fiftyone.core.labels.Polylines","`",",","or",":","class",":","`","fiftyone.core.labels.Keypoints","`","iou","(","None",")",":","the","IoU","threshold","to","use","to","determine","matches","classwise","(","None",")",":","whether","to","only","match","objects","with","the","same","class","label","(","True",")","or","allow","matches","between","classes","(","False",")","iscrowd","(","``","iscrowd","''",")",":","the","name","of","the","crowd","attribute","use_masks","(","False",")",":","whether","to","compute","IoUs","using","the","instances","masks","in","the","``","mask","``","attribute","of","the","provided","objects",",","which","must","be",":","class",":","`","fiftyone.core.labels.Detection","`","instances","use_boxes","(","False",")",":","whether","to","compute","IoUs","using","the","bounding","boxes","of","the","provided",":","class",":","`","fiftyone.core.labels.Polyline","`","instances","rather","than","using","their","actual","geometries","tolerance","(","None",")",":","a","tolerance",",","in","pixels",",","when","generating","approximate","polylines","for","instance","masks",".","Typical","values","are","1-3","pixels","compute_mAP","(","False",")",":","whether","to","perform","the","necessary","computations","so","that","mAP","and","PR","curves","can","be","generated","iou_threshs","(","None",")",":","a","list","of","IoU","thresholds","to","use","when","computing","mAP","and","PR","curves",".","Only","applicable","when","``","compute_mAP","``","is","True","max_preds","(","None",")",":","the","maximum","number","of","predicted","objects","to","evaluate","when","computing","mAP","and","PR","curves",".","Only","applicable","when","``","compute_mAP","``","is","True","error_level","(","1",")",":","the","error","level","to","use","when","manipulating","instance","masks","or","polylines",".","Valid","values","are",":","-","0",":","raise","geometric","errors","that","are","encountered","-","1",":","log","warnings","if","geometric","errors","are","encountered","-","2",":","ignore","geometric","errors","If","``","error_level",">","0","``",",","any","calculation","that","raises","a","geometric","error","will","default","to","an","IoU","of","0"]
code: def method(self):
      return "coco"
  
imports: import logging
  from collections import defaultdict
  import numpy
  import eta.core.utils
  import fiftyone.core.plots
  import fiftyone.utils.iou
  from .detection import DetectionEvaluation, DetectionEvaluationConfig, DetectionResults
label_desc: Use image node_id 2 for calling the COCOEvaluationConfig obj's underlying member method code with example usage: obj.method() and returns: str