-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add Top-k Python API. #9973
Conversation
@@ -20,6 +20,7 @@ | |||
from ..initializer import Normal, Constant | |||
from ..framework import Variable | |||
from ..param_attr import ParamAttr | |||
import nn |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
@@ -20,6 +20,7 @@ | |||
from ..initializer import Normal, Constant | |||
from ..framework import Variable | |||
from ..param_attr import ParamAttr | |||
import nn |
There was a problem hiding this comment.
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.
Fix #9974