Skip to content

Commit

Permalink
indicate r in the output CSV of prec and rec
Browse files Browse the repository at this point in the history
Former-commit-id: a1fe2fee66577a97089e4101d1b7eba070b2a6ee
  • Loading branch information
Javi Ribera committed Apr 4, 2018
1 parent c279c1c commit db9adb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions object-locator/locate.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@
# Output CSV where we will put
# the precision as a function of r
df_prec_n_rec = pd.DataFrame(columns=['precision', 'recall'])
df_prec_n_rec.index.name = 'r'

print(f'\__ Average AHD for all the testing set: {avg_ahd:.3f}')
print('\__ Accuracy for all the testing set, r=0, ..., 15')
Expand All @@ -285,6 +286,7 @@
df = pd.DataFrame(data=[[prec, rec]],
index=[judge.r],
columns=['precision', 'recall'])
df.index.name = 'r'
df_prec_n_rec = df_prec_n_rec.append(df)
print(f'\__ MAPE for all the testing set: {mape:.3f} %')
print(f'\__ MAE for all the testing set: {mae:.3f}')
Expand Down

0 comments on commit db9adb2

Please sign in to comment.