(self)
compute_total_errors memoizes the number of cells that have a
        wrong initial value: requires ground truth data.
compute_total_errors memoizes the number of cells that have a
        wrong initial value: requires ground truth data.
compute_total_errors memoizes the number of cells that have a wrong initial value : requires ground truth data .
def compute_total_errors(self):
        """
        compute_total_errors memoizes the number of cells that have a
        wrong initial value: requires ground truth data.
        """
        queries = []
        total_errors = 0.0
        for attr in self.ds.get_attributes():
            query = errors_template.substitute(init_table=self.ds.raw_data.name,
                                               grdt_table=self.clean_data.name,
                                               attr=attr)
            queries.append(query)
        results = self.ds.engine.execute_queries(queries)
        for res in results:
            total_errors += float(res[0][0])
        self.total_errors = total_errors
def compute_total_errors ( self ) : queries = [ ] total_errors = 0.0 for attr in self . ds . get_attributes ( ) : query = errors_template . substitute ( init_table = self . ds . raw_data . name , grdt_table = self . clean_data . name , attr = attr ) queries . append ( query ) results = self . ds . engine . execute_queries ( queries ) for res in results : total_errors += float ( res [ 0 ] [ 0 ] ) self . total_errors = total_errors