Skip to content
Snippets Groups Projects
Commit 6c71e889 authored by Mateusz Klimaszewski's avatar Mateusz Klimaszewski
Browse files

Fix loss metric.

parent 3c4991eb
Branches
No related merge requests found
Pipeline #2906 passed with stage
in 5 minutes and 58 seconds
......@@ -53,7 +53,7 @@ class NERModel(heads.Head):
)
if tags is not None:
self._loss = output["loss"]
self._loss = output["loss"].cpu().item()
self._accuracy_metric(output["probability"], tags, word_mask)
self._f1_metric(output["probability"], tags, word_mask)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment