class_docstr: Base class for YOLOv2 and YOLOv3.
  
  A subclass of this class should have :obj:`extractor`,
  :meth:`forward`, and :meth:`_decode`.
docstr: Use the given preset during prediction.
  
  This method changes values of :obj:`nms_thresh` and
  :obj:`score_thresh`. These values are a threshold value
  used for non maximum suppression and a threshold value
  to discard low confidence proposals in :meth:`predict`,
  respectively.
  
  If the attributes need to be changed to something
  other than the values provided in the presets, please modify
  them by directly accessing the public attributes.
  
  Args:
      preset ({'visualize', 'evaluate'}): A string to determine the
          preset to use.
docstr_tok: ["Use","the","given","preset","during","prediction",".","This","method","changes","values","of",":","obj",":","`","nms_thresh","`","and",":","obj",":","`","score_thresh","`",".","These","values","are","a","threshold","value","used","for","non","maximum","suppression","and","a","threshold","value","to","discard","low","confidence","proposals","in",":","meth",":","`","predict","`",",","respectively",".","If","the","attributes","need","to","be","changed","to","something","other","than","the","values","provided","in","the","presets",",","please","modify","them","by","directly","accessing","the","public","attributes",".","Args",":","preset","(","{","'visualize","'",",","'evaluate","'","}",")",":","A","string","to","determine","the","preset","to","use","."]
code: def use_preset(self, preset):
      """Use the given preset during prediction.
  
      This method changes values of :obj:`nms_thresh` and
      :obj:`score_thresh`. These values are a threshold value
      used for non maximum suppression and a threshold value
      to discard low confidence proposals in :meth:`predict`,
      respectively.
  
      If the attributes need to be changed to something
      other than the values provided in the presets, please modify
      them by directly accessing the public attributes.
  
      Args:
          preset ({'visualize', 'evaluate'}): A string to determine the
              preset to use.
      """
  
      if preset == "visualize":
          self.nms_thresh = 0.45
          self.score_thresh = 0.5
      elif preset == "evaluate":
          self.nms_thresh = 0.45
          self.score_thresh = 0.005
      else:
          raise ValueError("preset must be visualize or evaluate")
  
file_path: chainercv/chainercv/links/model/yolo/yolo_base.py
imports: import chainer
  from chainer.backends import cuda
  from chainercv import transforms
label_desc: Use image node_id 2 for calling the YOLOBase obj's underlying member method code with example usage: obj.use_preset(preset) without return types