Skip to content

Commit

Permalink
Merge pull request namisan#100 from namisan/fix_calc_metrics
Browse files Browse the repository at this point in the history
fix small bug in predict.py
  • Loading branch information
anselmwang authored Oct 3, 2019
2 parents a579971 + afc3399 commit fc80aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def eval_model(model, data, metric_meta, use_cuda=True, with_label=True):
scores.extend(score)
ids.extend(batch_meta['uids'])
if with_label:
metrics = calc_metrics(metric_meta, golds, predictions, scores, ids)
metrics = calc_metrics(metric_meta, golds, predictions, scores)
return metrics, predictions, scores, golds, ids


Expand Down

0 comments on commit fc80aee

Please sign in to comment.