def sets(self, x, y, n_keep):
        cnts = y.value_counts()
        assert(len(cnts) == 2)
        logging.info("Computing IG scores...")
        scores = []
        for c in x.columns:
            true_positives = sum(np.logical_and(x[c], y))
            false_positives = sum(np.logical_and(x[c], np.logical_not(y)))
            score = abs(norm.ppf(false_positives / float(cnts[0])) - norm.ppf(true_positives / float(cnts[1])))
            scores.append((score, c))
        scores.sort(reverse=True)
        return [s[1] for s in scores[:n_keep]]
dataset/ETHPy150Open kvh/ramp/ramp/selectors.py/InformationGainSelector.sets/swapped operands of `-`