This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
from joblib.parallel import Parallel, delayed | |
def cdist_generic(dist_fun, dataset1, dataset2=None, n_jobs=None verbose=0, | |
compute_diagonal=True, *args, **kwargs): | |
"""Compute cross-similarity matrix with joblib parallelization for a given | |
similarity function. | |
Parameters | |
---------- |