From 5c9da04ba7b7b9d11f5a687a085e0e918b9de11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=B4=E6=9C=B1=E6=B6=9B?= Date: Wed, 31 Oct 2018 16:10:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E8=A1=8C=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/simnet/train/tf/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/simnet/train/tf/README.md b/tools/simnet/train/tf/README.md index df4ceb9..c3bc37b 100755 --- a/tools/simnet/train/tf/README.md +++ b/tools/simnet/train/tf/README.md @@ -74,7 +74,7 @@ python tools/tf_record_writer.py ``` python tf_simnet.py --task train - --task_conf examples/cnn_pointwise.json + --task_conf examples/cnn-pointwise.json ``` **参数说明:** * **task**: 任务类型 ,可选择train或predict。 @@ -138,7 +138,7 @@ python tf_simnet.py ``` python tf_simnet.py --task predict - --task_conf examples/cnn_pointwise.json + --task_conf examples/cnn-pointwise.json ``` **参数说明:** 同模型训练部分 From 2565972b88e5a993859d8951cc2da55bc0e22b64 Mon Sep 17 00:00:00 2001 From: Dai Zhutao Date: Thu, 1 Nov 2018 20:33:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A2=AB=E9=99=A4?= =?UTF-8?q?=E6=95=B0=E6=B2=A1=E6=9C=89=E5=BC=BA=E5=88=B6=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E4=B8=BA=E6=B5=AE=E7=82=B9=E6=95=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/simnet/train/tf/utils/controler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/simnet/train/tf/utils/controler.py b/tools/simnet/train/tf/utils/controler.py index ebe5ac3..fdd9997 100644 --- a/tools/simnet/train/tf/utils/controler.py +++ b/tools/simnet/train/tf/utils/controler.py @@ -62,7 +62,7 @@ def run_predict(pred, label, config): sess.close() result_file.close() if mode == "pointwise": - mean_acc = mean_acc / step + mean_acc = mean_acc / step*1.0 print >> sys.stderr, "accuracy: %4.2f" % (mean_acc * 100)