Skip to content

Commit

Permalink
fix: wrong predicted condition
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Jun 2, 2022
1 parent f15f9bb commit ff387a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rubrix/server/apis/v0/models/text_classification.py
Expand Up @@ -297,7 +297,7 @@ def task(cls) -> TaskType:

@property
def predicted(self) -> Optional[PredictionStatus]:
if self.predicted_by and self.predicted_by:
if self.predicted_by and self.annotated_by:
return (
PredictionStatus.OK
if set(self.predicted_as) == set(self.annotated_as)
Expand Down

0 comments on commit ff387a1

Please sign in to comment.