Skip to content

Commit

Permalink
paintOut.py
Browse files Browse the repository at this point in the history
  • Loading branch information
deipss committed May 26, 2021
1 parent 687ee29 commit b62c375
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions PaintOut.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ def data_to_line(data):
Recall = 'Recall@'
NDCG = 'NDCG@'
for i in [1, 5, 10, 15, 20, 25]:
r_s += str(round(data[Recall + str(i)], 4)) + '\t'
n_s += str(round(data[NDCG + str(i)], 4)) + '\t'
r_s += '%.4f' % data[Recall + str(i)] + '\t'
n_s += '%.4f' % data[NDCG + str(i)] + '\t'
# r_s += str(round(data[Recall + str(i)], 4)) + '\t'
# n_s += str(round(data[NDCG + str(i)], 4)) + '\t'
return r_s + n_s


Expand All @@ -37,6 +39,7 @@ def data_load():

def data_load_bert_cnn():
dir = './experiments'
print('model\tdim\tdataset\tblocks\theads\tepochs\tstride\tkernel_size')
for root, dirs, files in os.walk(dir):
for sub_dir in dirs:
path = root + '/' + sub_dir
Expand Down

0 comments on commit b62c375

Please sign in to comment.