Skip to content

Commit

Permalink
Store the accuracy data per project as JSON when manually evaluating.
Browse files Browse the repository at this point in the history
  • Loading branch information
PPPI committed Apr 26, 2021
1 parent c515304 commit 50ebbb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Util/sample_links.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import random
import sys
import webbrowser as wb
Expand Down Expand Up @@ -62,3 +63,6 @@ def prompt_user_bool(prompt_msg, default=None, options_map=None):

for project in projects:
print('The GT accuracy over the sample is %2.3f' % np.mean(hits[project]))

with open('./gt_accuracy.json', 'w') as f:
f.write(json.dumps(hits))
4 changes: 4 additions & 0 deletions Util/sample_predictions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ast
import json
import random
import webbrowser as wb

Expand Down Expand Up @@ -63,3 +64,6 @@

for project in projects:
print('The GT accuracy over the sample is %2.3f' % np.mean(hits[project]))

with open('./gt_accuracy.json', 'w') as f:
f.write(json.dumps(hits))

0 comments on commit 50ebbb3

Please sign in to comment.