Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
FluidDoc
提交
b246684b
F
FluidDoc
项目概览
PaddlePaddle
/
FluidDoc
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
23
列表
看板
标记
里程碑
合并请求
111
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
FluidDoc
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
23
Issue
23
列表
看板
标记
里程碑
合并请求
111
合并请求
111
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b246684b
编写于
1月 03, 2020
作者:
L
Liufang Sang
提交者:
Bai Yifan
1月 03, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add shape description in accuracy api doc test=develop test=document_preview (#1692)
上级
e9411e09
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
3 addition
and
3 deletion
+3
-3
doc/fluid/api_cn/layers_cn/accuracy_cn.rst
doc/fluid/api_cn/layers_cn/accuracy_cn.rst
+3
-3
未找到文件。
doc/fluid/api_cn/layers_cn/accuracy_cn.rst
浏览文件 @
b246684b
...
...
@@ -10,8 +10,8 @@ accuracy layer。 参考 https://en.wikipedia.org/wiki/Precision_and_recall
使用输入和标签计算准确率。 如果正确的标签在topk个预测值里,则计算结果加1。注意:输出正确率的类型由input类型决定,input和lable的类型可以不一样。
参数:
- **input** (Tensor|LoDTensor)-数据类型为float32,float64。输入为网络的预测值。
- **label** (Tensor|LoDTensor)-数据类型为int64,int32。输入为数据集的标签。
- **input** (Tensor|LoDTensor)-数据类型为float32,float64。输入为网络的预测值。
shape为 ``[sample_number, class_dim]`` 。
- **label** (Tensor|LoDTensor)-数据类型为int64,int32。输入为数据集的标签。
shape为 ``[sample_number, 1]`` 。
- **k** (int64|int32) - 取每个类别中k个预测值用于计算。
- **correct** (int64|int32)-正确预测值的个数。
- **total** (int64|int32)-总共的预测值。
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录