fix: error when precision_score return float

#2
by Cesaryuan - opened

When precision_score() returns float, score.size will throw an error AttributeError: 'float' object has no attribute 'size'

I am also getting the same error message. How to fix this? Even the test example provided for running precision does not work

Cannot merge
This branch has merge conflicts in the following files:
  • precision.py

Sign up or log in to comment