cognitive-catalyst / WA-Testing-Tool

Scripts that run against Watson Assistant for K fold validation on training set, testing on blind test, and draw precision curves for comparison.
Apache License 2.0
78 stars 60 forks source link

Precision & Recall Errors and Pandas Deprecation Fix #154

Closed pratyushsingh97 closed 4 years ago

pratyushsingh97 commented 4 years ago
  1. Fixed the pandas deprecation warning on the default datatype
  2. Fixed ZeroDivisionError when calling precision_recall_fscore_support by making precision, recall, and f1 default to 0 when there are not any predicted true labels
  3. Added extra error checking to avoid ZeroDivisionError when calculating individual precision, recall, and f1 scores.

DCO 1.1 Signed-off-by: Pratyush Singh pratyushsingh@ibm.com