From 497a8d96bc1944e87973a39af28b289d4bcc4c98 Mon Sep 17 00:00:00 2001 From: function2 <function2@qq.com> Date: Mon, 26 Oct 2020 22:55:36 +0800 Subject: [PATCH] update error logging --- convlab2/dst/dstc9/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convlab2/dst/dstc9/utils.py b/convlab2/dst/dstc9/utils.py index 6a669c8..78bd9fe 100644 --- a/convlab2/dst/dstc9/utils.py +++ b/convlab2/dst/dstc9/utils.py @@ -95,7 +95,7 @@ def eval_states(gt, pred, subtask): for k, v in kargs.items(): ret[k] = v return ret, None - errors = [] + errors = [['dialog id', 'turn id', 'domain name', 'slot name', 'ground truth', 'predict']] joint_acc, joint_tot = 0, 0 slot_acc, slot_tot = 0, 0 @@ -128,7 +128,7 @@ def eval_states(gt, pred, subtask): if gt_value: tp += 1 else: - errors.append([gt_value, pred_value]) + errors.append([dialog_id, turn_id, domain_name, slot_name, gt_value, pred_value]) turn_result = False if gt_value: fn += 1 -- GitLab