def transform(self, X=None):
    if X is None:
      X = self.X
    L = self.transformer()
    return X.dot(L.T)
Applies the metric transformation.
dataset/ETHPy150Open all-umass/metric-learn/metric_learn/base_metric.py/BaseMetricLearner.transform