(self)
return self.correct_repairs / self.total_repairs_grdt
Computes precision (# correct repairs / # of total repairs w/ ground truth)
Computes precision (# correct repairs / # of total repairs w/ ground truth)
Computes precision ( # correct repairs / # of total repairs w / ground truth )
def compute_precision(self):
        """
        Computes precision (# correct repairs / # of total repairs w/ ground truth)
        """
        if self.total_repairs_grdt == 0:
            return 0
        return self.correct_repairs / self.total_repairs_grdt
def compute_precision ( self ) : if self . total_repairs_grdt == 0 : return 0 return self . correct_repairs / self . total_repairs_grdt