(self)
return report, report_time, eval_report
Returns an EvalReport named tuple containing the experiment results.
Returns an EvalReport named tuple containing the experiment results.
Returns an EvalReport named tuple containing the experiment results .
def eval_report(self):
        """
        Returns an EvalReport named tuple containing the experiment results.
        """
        tic = time.clock()
        try:
            prec, rec, rep_recall, f1, rep_f1 = self.evaluate_repairs()
            report = "Precision = %.2f, Recall = %.2f, Repairing Recall = %.2f, F1 = %.2f, Repairing F1 = %.2f, Detected Errors = %d, Total Errors = %d, Correct Repairs = %d, Total Repairs = %d, Total Repairs on correct cells (Grdth present) = %d, Total Repairs on incorrect cells (Grdth present) = %d" % (
                      prec, rec, rep_recall, f1, rep_f1,
                      self.detected_errors, self.total_errors, self.correct_repairs,
                      self.total_repairs, self.total_repairs_grdt_correct, self.total_repairs_grdt_incorrect)
            eval_report = EvalReport(prec, rec, rep_recall, f1, rep_f1, self.detected_errors, self.total_errors,
                           self.correct_repairs, self.total_repairs, self.total_repairs_grdt,
                           self.total_repairs_grdt_correct, self.total_repairs_grdt_incorrect)
        except Exception as e:
            logging.error("ERROR generating evaluation report %s" % e)
            raise

        toc = time.clock()
        report_time = toc - tic
        return report, report_time, eval_report
def eval_report ( self ) : tic = time . clock ( ) try : prec , rec , rep_recall , f1 , rep_f1 = self . evaluate_repairs ( ) report = "Precision = %.2f, Recall = %.2f, Repairing Recall = %.2f, F1 = %.2f, Repairing F1 = %.2f, Detected Errors = %d, Total Errors = %d, Correct Repairs = %d, Total Repairs = %d, Total Repairs on correct cells (Grdth present) = %d, Total Repairs on incorrect cells (Grdth present) = %d" % ( prec , rec , rep_recall , f1 , rep_f1 , self . detected_errors , self . total_errors , self . correct_repairs , self . total_repairs , self . total_repairs_grdt_correct , self . total_repairs_grdt_incorrect ) eval_report = EvalReport ( prec , rec , rep_recall , f1 , rep_f1 , self . detected_errors , self . total_errors , self . correct_repairs , self . total_repairs , self . total_repairs_grdt , self . total_repairs_grdt_correct , self . total_repairs_grdt_incorrect ) except Exception as e : logging . error ( "ERROR generating evaluation report %s" % e ) raise toc = time . clock ( ) report_time = toc - tic return report , report_time , eval_report