Skip to content

Commit

Permalink
Update error_analysis_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tongyu-microsoft authored Jul 12, 2023
1 parent 247e5ca commit c441282
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def predict(self, X):
predictions = self.predictions[index]
if self.task_type == ModelTask.MULTILABEL_TEXT_CLASSIFICATION:
return predictions
if self.classes is not None:
if self.classes is not None and isinstance(predictions[0], int):
predictions = [self.classes[y] for y in predictions]
return predictions

Expand Down

0 comments on commit c441282

Please sign in to comment.