(self)
compute_detected_errors memoizes the number of error cells that
        were detected in error detection: requires ground truth.

        This value is always equal or less than total errors (see
        compute_total_errors).
compute_detected_errors memoizes the number of error cells that
        were detected in error detection: requires ground truth.
compute_detected_errors memoizes the number of error cells that were detected in error detection : requires ground truth .
def compute_detected_errors(self):
        """
        compute_detected_errors memoizes the number of error cells that
        were detected in error detection: requires ground truth.

        This value is always equal or less than total errors (see
        compute_total_errors).
        """
        query = "SELECT count(*) FROM " \
                "  (SELECT _vid_ " \
                "   FROM   %s as t1, %s as t2, %s as t3 " \
                "   WHERE  t1._tid_ = t2._tid_ AND t1._cid_ = t3._cid_ " \
                "     AND  t1.attribute = t2._attribute_ " \
                "     AND  t1.init_value != t2._value_) AS t" \
                % (AuxTables.cell_domain.name, self.clean_data.name, AuxTables.dk_cells.name)
        res = self.ds.engine.execute_query(query)
        self.detected_errors = float(res[0][0])
def compute_detected_errors ( self ) : query = "SELECT count(*) FROM " "  (SELECT _vid_ " "   FROM   %s as t1, %s as t2, %s as t3 " "   WHERE  t1._tid_ = t2._tid_ AND t1._cid_ = t3._cid_ " "     AND  t1.attribute = t2._attribute_ " "     AND  t1.init_value != t2._value_) AS t" % ( AuxTables . cell_domain . name , self . clean_data . name , AuxTables . dk_cells . name ) res = self . ds . engine . execute_query ( query ) self . detected_errors = float ( res [ 0 ] [ 0 ] )