class_docstr: Labeler for multiscale anchor boxes.
class_docstr_tok: ["Labeler","for","multiscale","anchor","boxes","."]
docstr: Constructs anchor labeler to assign labels to anchors.
  
  Args:
    anchors: an instance of class Anchors.
    num_classes: integer number representing number of classes in the dataset.
    match_threshold: float number between 0 and 1 representing the threshold
      to assign positive labels for anchors.
docstr_tok: ["Constructs","anchor","labeler","to","assign","labels","to","anchors",".","Args",":","anchors",":","an","instance","of","class","Anchors",".","num_classes",":","integer","number","representing","number","of","classes","in","the","dataset",".","match_threshold",":","float","number","between","0","and","1","representing","the","threshold","to","assign","positive","labels","for","anchors","."]
code: def __init__(self, anchors, num_classes, match_threshold=0.5):
      """Constructs anchor labeler to assign labels to anchors.
  
      Args:
        anchors: an instance of class Anchors.
        num_classes: integer number representing number of classes in the dataset.
        match_threshold: float number between 0 and 1 representing the threshold
          to assign positive labels for anchors.
      """
      similarity_calc = region_similarity_calculator.IouSimilarity()
      matcher = argmax_matcher.ArgMaxMatcher(
          match_threshold,
          unmatched_threshold=match_threshold,
          negatives_lower_than_unmatched=True,
          force_match_for_each_row=True,
      )
      box_coder = faster_rcnn_box_coder.FasterRcnnBoxCoder()
  
      self._target_assigner = target_assigner.TargetAssigner(
          similarity_calc, matcher, box_coder
      )
      self._anchors = anchors
      self._match_threshold = match_threshold
      self._num_classes = num_classes
  
file_path: DALI/docs/examples/use_cases/tensorflow/efficientdet/pipeline/anchors.py
imports: import collections
  import numpy
  import tensorflow
  import utils
  from .anchors_utils import argmax_matcher
  from .anchors_utils import box_list
  from .anchors_utils import faster_rcnn_box_coder
  from .anchors_utils import region_similarity_calculator
  from .anchors_utils import target_assigner
label_desc: Use image node_id 1 to create a new AnchorLabeler object from inherited base classes: object with example: obj = AnchorLabeler(anchors, num_classes, match_threshold)