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 tags found
No related merge requests found
Pipeline #2906 passed
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment