class_docstr: Precision@K.
  
  Parameters
  ----------
  k: int or list, optional, default: -1 (all)
      The number of items in the top@k list.
      If None, all items will be considered.
class_docstr_tok: ["Precision","@","K.","Parameters","--","--","--","--","--","k",":","int","or","list",",","optional",",","default",":","-1","(","all",")","The","number","of","items","in","the","top","@","k","list",".","If","None",",","all","items","will","be","considered","."]
code: def __init__(self, k=-1):
      super().__init__(name="Precision@{}".format(k), k=k)
  
imports: import numpy
  from scipy.stats import rankdata
label_desc: Use image node_id 1 to create a new Precision object from inherited base classes: MeasureAtK with example: obj = Precision(k)