Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
OleNet opened this issue May 17, 2017 · 1 comment · Fixed by #2411
Assignees
Labels

Comments

@OleNet
Copy link
Contributor

OleNet commented May 17, 2017

使用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。

@lcy-seso lcy-seso added the Bug label May 17, 2017
@lcy-seso lcy-seso self-assigned this May 17, 2017
@luotao1 luotao1 added this to 删除demo目录 in V2 API Enhancement May 17, 2017
@lcy-seso
Copy link
Contributor

确实是一个bug~ 谢谢你。

heavengate pushed a commit to heavengate/Paddle that referenced this issue Aug 16, 2021
…est=dygraph (PaddlePaddle#2181)

* fix problem due to empty bbox_pred and modify ppyolo docs, test=dygraph

* modify post process to avoid dy2st problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
V2 API Enhancement
demo目录的问题
Development

Successfully merging a pull request may close this issue.

2 participants