def METHOD_NAME(self, label_score_table):
    def replaced_func(x):
        if x[1] >= self.threshold and x[0] == 0:
            return 1
        else:
            return x[0]
    def summarized_func(r, l):
        if r == 1 and l[0] == 0:
            return 1
        else:
            return 0
    LOGGER.info("Switch probability strategy")
    replaced_label_table = label_score_table.mapValues(replaced_func)
    summary_table = replaced_label_table.join(label_score_table, summarized_func)
    self.converted_unlabeled_count = summary_table.filter(lambda k, v: v == 1).count()
    return replaced_label_table