def construct_kernel(self, metric):
    'Construct an exponential squared covariance matrix.\n        '
    (a, l) = (self.params['amplitude'], self.params['length'])
    Sigma = ((a ** 2) * np.exp(((- ((metric[:, None] - metric[None, :]) ** 2)) / (2 * (l ** 2)))))
    return Sigma
Construct an exponential squared covariance matrix.
def construct_kernel(self, metric):
    '\n        '
    (a, l) = (self.params['amplitude'], self.params['length'])
    Sigma = ((a ** 2) * np.exp(((- ((metric[:, None] - metric[None, :]) ** 2)) / (2 * (l ** 2)))))
    return Sigma