nyax commited on
Commit
01b8cbf
·
verified ·
1 Parent(s): ef56b5d

Updated similarity threshold to have an edge in 2D plot

Browse files
Files changed (1) hide show
  1. plotting.py +1 -1
plotting.py CHANGED
@@ -118,7 +118,7 @@ def plot_umap_fig(dist_matrix, sim_matrix, model_names, families, colors,key='fi
118
  for i in range(len(model_names)):
119
  for j in range(i+1, len(model_names)): # Only process each pair once (i,j where i<j)
120
  val = alpha_scaling(sim_matrix[i][j])
121
- if val > 0.1:
122
  edges.append((i, j, val, colors[families[i]]))
123
 
124
  # Add all edges at once
 
118
  for i in range(len(model_names)):
119
  for j in range(i+1, len(model_names)): # Only process each pair once (i,j where i<j)
120
  val = alpha_scaling(sim_matrix[i][j])
121
+ if sim_matrix[i][j] >= 0.6: #Considered as significant similarity
122
  edges.append((i, j, val, colors[families[i]]))
123
 
124
  # Add all edges at once