(self)
return self.correct_repairs / self.total_errors
Computes the recall (# of correct repairs / # of total errors).
Computes the recall (# of correct repairs / # of total errors).
Computes the recall ( # of correct repairs / # of total errors ) .
def compute_recall(self):
        """
        Computes the recall (# of correct repairs / # of total errors).
        """
        if self.total_errors == 0:
            return 0
        return self.correct_repairs / self.total_errors
def compute_recall ( self ) : if self . total_errors == 0 : return 0 return self . correct_repairs / self . total_errors