425 Star 4.3K Fork 423

GVPPaddlePaddle / Paddle

 / 详情

似乎是个bug,TypeError: precision_recall_evaluator() got an unexpected keyword argument 'top_k'

Done
Opened this issue  
2021-03-25 19:31

源自github用户OleNet:
使用sentiment_net.py文件的时候,执行这句话:
outputs(classification_cost(input=output, label=data_layer('label', 1), evaluator=[precision_recall_evaluator, classification_error_evaluator]))
会报错
image

按照错误信息,改了一下源代码:
paddle/trainer_config_helpers/layers.py line 3853:
image

运行成功了,打印出了我想要的指标。

所以估计这是一个bug。

Comments (1)

Expand operation logs
PaddlePaddle-Coordinator changed issue state from 待办的 to 已完成
PaddlePaddle-Coordinator added
 
Bug
label

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(1)
Python
1
https://gitee.com/paddlepaddle/Paddle.git
git@gitee.com:paddlepaddle/Paddle.git
paddlepaddle
Paddle
Paddle

Search