Skip to content

Commit

Permalink
Update Evaluator.py
Browse files Browse the repository at this point in the history
Making classId work also as a string
  • Loading branch information
rafaelpadilla authored Apr 16, 2019
1 parent 110242c commit aca5279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def PlotPrecisionRecallCurve(self,
# ap_str = "{0:.4f}%".format(average_precision * 100)
plt.title('Precision x Recall curve \nClass: %s, AP: %s' % (str(classId), ap_str))
else:
plt.title('Precision x Recall curve \nClass: %d' % classId)
plt.title('Precision x Recall curve \nClass: %s' % str(classId))
plt.legend(shadow=True)
plt.grid()
############################################################
Expand Down

0 comments on commit aca5279

Please sign in to comment.