gorkaartola commited on
Commit
94d2567
1 Parent(s): f5f05cf

Update metric_for_tp_fp_samples.py

Browse files
Files changed (1) hide show
  1. metric_for_tp_fp_samples.py +1 -1
metric_for_tp_fp_samples.py CHANGED
@@ -195,7 +195,7 @@ class metric_tp_fp_Datasets(evaluate.Metric):
195
  """Returns the scores"""
196
  # TODO: Compute the different scores of the metric
197
  predictions = torch.from_numpy(np.array(predictions, dtype = 'float32'))
198
- classes = [i for i in range(len(predictions)[0])]
199
  #for value in references:
200
  # if value[0] not in classes:
201
  # classes.append(value[0])
 
195
  """Returns the scores"""
196
  # TODO: Compute the different scores of the metric
197
  predictions = torch.from_numpy(np.array(predictions, dtype = 'float32'))
198
+ classes = [i for i in range(len(predictions[0]))]
199
  #for value in references:
200
  # if value[0] not in classes:
201
  # classes.append(value[0])