From 280ba3b75d00993c90b92bf32b95e5f1de3bbc4a Mon Sep 17 00:00:00 2001 From: SunAhong1993 <48579383+SunAhong1993@users.noreply.github.com> Date: Mon, 22 Jul 2019 15:43:55 +0800 Subject: [PATCH] Update Accuracy.md --- caffe2fluid/doc/Accuracy.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/caffe2fluid/doc/Accuracy.md b/caffe2fluid/doc/Accuracy.md index 8574fcd..09aca4d 100644 --- a/caffe2fluid/doc/Accuracy.md +++ b/caffe2fluid/doc/Accuracy.md @@ -9,8 +9,10 @@ layer { bottom: "input" bottom: "label" top: "accuracy" - include { - phase: TEST + accuracy_param{ + top_k = 1 + axis = 1 + # ignore_label = 0 # 定义需要忽略的label的类标,一般未定义 } } ``` @@ -29,8 +31,8 @@ paddle.fluid.layers.accuracy( ### 功能差异 #### 计算机制 -Caffe:只能计算每个类别中top1中正确预测的个数; -PaddlePaddle:可以通过设置`k`来计算每个类别中top k 中正确预测的个数。 +Caffe:可以设置计算某一维的accuracy; +PaddlePaddle:不可以设置计算某一维的accuracy。 -- GitLab