Commit 06ece375 authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Since threshold from scipy.stats no longer exists, replacement.

parent 1d52441e
......@@ -52,7 +52,11 @@ class ILP_IV:
f.write(' + {}{}{}'.format(cluster, self.sep, cluster))
# sum of dist > thr in the lower triangular part od the distance matrix
s = np.sum(stats.threshold(np.tril(distances, -1), threshmax=t, newval=0)) + 1
mask = (np.tril(distances, -1)>t)
threshold = np.tril(distances, -1).copy()
threshold[mask] = 0
s = np.sum(threshold) + 1
#s = np.sum(stats.threshold(np.tril(distances, -1), threshmax=t, newval=0)) + 1
logging.debug('ilp sum scores: '+str(s))
l = len(cluster_list)
for i in range(l):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment