def paired_cosine_distances(X, Y):
    X, Y = check_paired_arrays(X, Y)
    return .5 * row_norms(normalize(X) - normalize(Y), squared=True)
Computes the paired cosine distances between X and Y
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/metrics/pairwise.py/paired_cosine_distances