In training phase,  I have the true lables and the corresponding scores. I can use sklearn.metric. precision_recall_curve(labels, scores) to calculate the precision and recall rate. But How can I plot them and view ?
I also try to use tensorboardX, there are two methods, add_pr_curve(), but it requires the input is the predicted probability, not the scores. Another method is add_pr_curve_raw(), it requires many parameters, such as positive_num, negative_num, precision, recall, it is hard or difficult for me to calculate these parameter values. So, What can I do for viewing the pr curve in the training phase? is there a good way to implement it? Thanks in advance.