Commit 90cd2171 authored by Administrator's avatar Administrator

[FEATURE] No isolated node anymore (thx David Chavalarias for your remark).

parent 84b7863b
......@@ -510,7 +510,7 @@ def node_link(request, corpus_id):
# Removing unconnected nodes
threshold = min(x.max(axis=1))
matrix_filtered = np.where(x > threshold, 1, 0)
matrix_filtered = np.where(x >= threshold, 1, 0)
#matrix_filtered = np.where(x > threshold, x, 0)
G = nx.from_numpy_matrix(matrix_filtered)
......
Markdown is supported
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