class_docstr: Object returned by explainers
class_docstr_tok: ["Object","returned","by","explainers"]
docstr: Returns the anchor precision (a float)
  Args:
      partial_index (int): lets you get the anchor precision until a
      certain index. For example, if the anchor has precisions
      [0.1, 0.5, 0.95] and partial_index=1, this will return 0.5
docstr_tok: ["Returns","the","anchor","precision","(","a","float",")","Args",":","partial_index","(","int",")",":","lets","you","get","the","anchor","precision","until","a","certain","index",".","For","example",",","if","the","anchor","has","precisions","[","0.1",",","0.5",",","0.95","]","and","partial_index=1",",","this","will","return","0.5"]
code: def precision(self, partial_index=None):
      """
      Returns the anchor precision (a float)
      Args:
          partial_index (int): lets you get the anchor precision until a
          certain index. For example, if the anchor has precisions
          [0.1, 0.5, 0.95] and partial_index=1, this will return 0.5
      """
      precision = self.exp_map["precision"]
      if len(precision) == 0:
          return self.exp_map["all_precision"]
      if partial_index is not None:
          return precision[partial_index]
      else:
          return precision[-1]
  
file_path: anchor/anchor/anchor_explanation.py
imports: from __future__ import print_function
  import io
label_desc: Use image node_id 4 for calling the AnchorExplanation obj's underlying member method code with example usage: obj.precision(partial_index) and returns: self, precision, precision