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

Add Top-k Python API. #9973

Merged
merged 4 commits into from
Apr 18, 2018
Merged

Add Top-k Python API. #9973

merged 4 commits into from
Apr 18, 2018

Conversation

qingqing01
Copy link
Contributor

@qingqing01 qingqing01 commented Apr 17, 2018

Fix #9974

@@ -20,6 +20,7 @@
from ..initializer import Normal, Constant
from ..framework import Variable
from ..param_attr import ParamAttr
import nn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can delete this file and put accuracy and auc to evaluator.

Currently seems "evaluator" is the python wrapping using operators, and framework/metrics.py is a pure python implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we have:

It seems the fluid/evaluator.py will be removed and use fluid/metrics.py instead. But I'm not sure what is the final conclusion. So these cleanups maybe can be done in the future.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. We must change all the demo and models code if this change happens. This PR LGTM then.

typhoonzero
typhoonzero previously approved these changes Apr 17, 2018
@@ -20,6 +20,7 @@
from ..initializer import Normal, Constant
from ..framework import Variable
from ..param_attr import ParamAttr
import nn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. We must change all the demo and models code if this change happens. This PR LGTM then.

@qingqing01 qingqing01 merged commit ee9832a into PaddlePaddle:develop Apr 18, 2018
@qingqing01 qingqing01 deleted the topk branch November 14, 2019 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants