(self)
compute_correct_repairs memoizes the number of error cells
        that were correctly inferred.

        This value is always equal or less than total errors (see
        compute_total_errors).
compute_correct_repairs memoizes the number of error cells
        that were correctly inferred.
compute_correct_repairs memoizes the number of error cells that were correctly inferred .
def compute_correct_repairs(self):
        """
        compute_correct_repairs memoizes the number of error cells
        that were correctly inferred.

        This value is always equal or less than total errors (see
        compute_total_errors).
        """
        queries = []
        correct_repairs = 0.0
        for attr in self.ds.get_attributes():
            query = correct_repairs_template.substitute(init_table=self.ds.raw_data.name, grdt_table=self.clean_data.name,
                                                        attr=attr, inf_dom=AuxTables.inf_values_dom.name)
            queries.append(query)
        results = self.ds.engine.execute_queries(queries)
        for res in results:
            correct_repairs += float(res[0][0])
        self.correct_repairs = correct_repairs
def compute_correct_repairs ( self ) : queries = [ ] correct_repairs = 0.0 for attr in self . ds . get_attributes ( ) : query = correct_repairs_template . substitute ( init_table = self . ds . raw_data . name , grdt_table = self . clean_data . name , attr = attr , inf_dom = AuxTables . inf_values_dom . name ) queries . append ( query ) results = self . ds . engine . execute_queries ( queries ) for res in results : correct_repairs += float ( res [ 0 ] [ 0 ] ) self . correct_repairs = correct_repairs