def transform(self, X, y=None):
        """Transform."""
        feattr = []
        for metric in self.metric_dist:
            self.mdm.metric_dist = metric
            feat = self.mdm.transform(X)
            # substract distance of the class 0
            feat = feat[:, 0:6] - feat[:, 6:]
            feattr.append(feat)
        feattr = np.concatenate(feattr, axis=1)
        feattr[np.isnan(feattr)] = 0
        return feattr
dataset/ETHPy150Open alexandrebarachant/Grasp-and-lift-EEG-challenge/preprocessing/covs_alex.py/DistanceCalculatorRafal.transform/original