summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Code/overlap.py2
-rw-r--r--Code/update_network_by_force.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/Code/overlap.py b/Code/overlap.py
index aabf592..01f8f58 100644
--- a/Code/overlap.py
+++ b/Code/overlap.py
@@ -11,7 +11,7 @@ class Overlap:
d2 = {}
for k in d:
if d[k] > tau:
- d2[k] = score
+ d2[k] = d[k]
return d2
self.pred = predicted_edges
diff --git a/Code/update_network_by_force.py b/Code/update_network_by_force.py
index 56f46dc..c47002c 100644
--- a/Code/update_network_by_force.py
+++ b/Code/update_network_by_force.py
@@ -148,9 +148,6 @@ if os.path.getmtime(MERGED_EDGE_FILE) < os.path.getmtime(EDGE_POOL_DIR): # edge
copy_and_backup_file(MERGED_EDGE_FILE, '../Analysis') # the backup file will be used for further analysis
-write_log_file('[update_network_by_force.py] Update done at %s.\n\n' % (datetime.now().strftime('%Y-%m-%d %H:%M:%S')), UPDATE_NETWORK_LOG_FILE)
-
-
# Compute overlap
f = open('../Data/temp/AtRegNet.20210208.csv')
@@ -177,3 +174,6 @@ f.close()
overlap = Overlap(BrainEdges_dict, 3, AtRegNet_dict, 0)
write_log_file('[update_network_by_force.py] Performance stats - TP:%d, PP:%d, Hit rate: %4.7f while comparing with AtRegNet.20210208.csv.' % (overlap.getTP(), overlap.getNumberOfPositivesInPred(), overlap.getTP()/overlap.getNumberOfPositivesInPred()), UPDATE_NETWORK_LOG_FILE)
+
+write_log_file('[update_network_by_force.py] Update done at %s.\n\n' % (datetime.now().strftime('%Y-%m-%d %H:%M:%S')), UPDATE_NETWORK_LOG_FILE)
+