We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 673e836 commit 0ec63faCopy full SHA for 0ec63fa
labelbox/data/metrics/iou.py
@@ -55,7 +55,9 @@ def classification_miou(predictions: List[ClassificationTool],
55
prediction, label = predictions[0], labels[0]
56
57
if type(prediction) != type(label):
58
- raise Type
+ raise TypeError(
59
+ "Classification features must be the same type to compute agreement. "
60
+ f"Found `{type(prediction)}` and `{type(label)}`")
61
62
if isinstance(prediction, NDText):
63
return float(prediction.answer == label.answer)
0 commit comments