Skip to content
Snippets Groups Projects
Commit 497a8d96 authored by function2's avatar function2
Browse files

update error logging

parent 68d96eda
Branches
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ def eval_states(gt, pred, subtask): ...@@ -95,7 +95,7 @@ def eval_states(gt, pred, subtask):
for k, v in kargs.items(): for k, v in kargs.items():
ret[k] = v ret[k] = v
return ret, None return ret, None
errors = [] errors = [['dialog id', 'turn id', 'domain name', 'slot name', 'ground truth', 'predict']]
joint_acc, joint_tot = 0, 0 joint_acc, joint_tot = 0, 0
slot_acc, slot_tot = 0, 0 slot_acc, slot_tot = 0, 0
...@@ -128,7 +128,7 @@ def eval_states(gt, pred, subtask): ...@@ -128,7 +128,7 @@ def eval_states(gt, pred, subtask):
if gt_value: if gt_value:
tp += 1 tp += 1
else: else:
errors.append([gt_value, pred_value]) errors.append([dialog_id, turn_id, domain_name, slot_name, gt_value, pred_value])
turn_result = False turn_result = False
if gt_value: if gt_value:
fn += 1 fn += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment