leavoigt commited on
Commit
bb4307a
1 Parent(s): fa5983b

Update utils/target_classifier.py

Browse files
Files changed (1) hide show
  1. utils/target_classifier.py +2 -1
utils/target_classifier.py CHANGED
@@ -23,7 +23,8 @@ def get_target_labels(preds):
23
  """
24
 
25
  # Turn into list
26
- preds_list = preds.to_list()
 
27
 
28
  # Get label names
29
  predictions_names=[]
 
23
  """
24
 
25
  # Turn into list
26
+ preds_list = preds.numpy().tolist()
27
+
28
 
29
  # Get label names
30
  predictions_names=[]