def print_pre(self, is_valid, filt_cfg_):
    num_valid = is_valid.sum()
    logger.info(('[testres] Sampling from is_valid.size=%r with filt=%r' % (is_valid.size, ut.get_cfg_lbl(filt_cfg_))))
    logger.info(('  * is_valid.shape = %r' % (is_valid.shape,)))
    logger.info(('  * num_valid = %r' % (num_valid,)))
    self.prev_num_valid = num_valid
def print_pre(self, is_valid, filt_cfg_):
    num_valid = is_valid.sum()
    logger.info(('[testres] Sampling from is_valid.size=%r with filt=%r' % (is_valid.size, ut.get_cfg_lbl(filt_cfg_))))
    logger.info(('  * is_valid.shape = %r' % (is_valid.shape,)))
    logger.info(('  * num_valid = %r' % (num_valid,)))
    self.prev_num_valid = num_valid