# HG changeset patch # User Nicolas Saunier # Date 1439566142 14400 # Node ID fb60b54e1041b2126d99afccb3e0070088d37ea1 # Parent 967d244968a471b44ff3c528f2ff07575ab33775 added warning for finite delta diff -r 967d244968a4 -r fb60b54e1041 python/utils.py --- a/python/utils.py Wed Aug 12 08:26:59 2015 -0400 +++ b/python/utils.py Fri Aug 14 11:29:02 2015 -0400 @@ -662,6 +662,8 @@ import sys sys.exit() else: + if similarityFunc is None and metric is not None and not np.isinf(delta): + print('Warning: you are using a cdist metric and a finite delta, which will make probably computation slower than using the equivalent similarityFunc (since all pairwise distances will be computed by cdist).') self.similarityFunc = similarityFunc self.metric = metric self.epsilon = epsilon