def metric(self):
    L = self.transformer()
    return L.T.dot(L)
Computes the Mahalanobis matrix from the transformation matrix.
dataset/ETHPy150Open all-umass/metric-learn/metric_learn/base_metric.py/BaseMetricLearner.metric